how to use two for loop in one matlab program
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
M
2019 年 1 月 30 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Polynomials についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!