matlab to eviews
Posted: Wed Mar 14, 2012 9:01 pm
Hi,
I am trying to replicate a matlab code in EViews but having trouble doing the following loop;
for jj=1:nstep;
impz(jj,:)=shock(jj,:)+zlag*betaz(1:length(betaz),:);
zlag=[impz(jj,:) zlag(1,1:(nlags-1)*nvars)];
end;
I've managed to convert lots of stuff but having trouble with this kinda looping and concatenation. Could anyone please help me with this? Thanks
C.
I am trying to replicate a matlab code in EViews but having trouble doing the following loop;
for jj=1:nstep;
impz(jj,:)=shock(jj,:)+zlag*betaz(1:length(betaz),:);
zlag=[impz(jj,:) zlag(1,1:(nlags-1)*nvars)];
end;
I've managed to convert lots of stuff but having trouble with this kinda looping and concatenation. Could anyone please help me with this? Thanks
C.