MATLAB Answers

0

how to use two for loop in one matlab program

Asked by asha sangwan on 30 Jan 2019
Latest activity Edited by madhan ravi
on 30 Jan 2019
for z=1:3
v(z) = zeros(1,length(x));
for ii = 1:numel(x)
V = roots([S0(ii),-S1(ii),S2(ii),-S3(ii)]);
v(z)(ii) = sqrt((V(z,1))./p);
end
end

  0 Comments

Sign in to comment.

1 Answer

Answer by M
on 30 Jan 2019

You should read this:
You cannot write v(z)(ii) but you should consider 2 dimensional data and acces it using v(z,ii).

  0 Comments

Sign in to comment.