You give A three columns when you do this:
A=[m,n,p]; % size 1x3
Perhaps you meant:
A=zeros([m,n,p]);
But that would give A too many rows.
Anyway, the whole thing can be done in one line:
A = Vf(312:324:end,:,:);
You give A three columns when you do this:
A=[m,n,p]; % size 1x3
Perhaps you meant:
A=zeros([m,n,p]);
But that would give A too many rows.
Anyway, the whole thing can be done in one line:
A = Vf(312:324:end,:,:);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!