how to use two for loop in one matlab program
조회 수: 4 (최근 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!