reverse-shooting

Matlab scripts for reverse shooting
Log | Files | Refs | README

unbundle.m (466B)


      1 % unbundle.m     [y1,y2,...,yN] = unbundle(x,numcty,nums)
      2 %   Returns the  rowsxnumcty matrices of x that are referenced in nums.
      3 
      4 function [y1,y2,y3,y4,y5,y6,y7,y8,y9,y10,y11,y12,y13,y14,y15,y16,y17,y18, ...
      5         y19,y20,y21,y22,y23,y24,y25,y26,y27,y28,y29,y30,y31,y32] = ...
      6                     unbundle(x,numcty,nums);
      7 
      8 yvar = vdummy('y',length(nums));
      9 for i=1:length(nums);
     10 	start=(nums(i)-1)*numcty+1;
     11 	eval([yvar(i,:) ' = x(:,start:start+numcty-1);']);
     12 end