Info
この質問は閉じられています。 編集または回答するには再度開いてください。
A for loop need help ASAP
1 回表示 (過去 30 日間)
古いコメントを表示
I have a loop and I want to collect the output?
A are arrays 0:300
for i = 0:3:300
Fi = atan(-(A5(1,1+i)/A5(1,2+i)));
Theta = acos(A5(1,3+i));
Psi = atan(A3(1,3+1)/A4(1,3+i));
end
1 件のコメント
回答 (1 件)
Torsten
2019 年 4 月 30 日
編集済み: Torsten
2019 年 4 月 30 日
for i = 0:3:300
j = i/3 + 1;
Fi(j)= atan(-(A5(1,1+i)/A5(1,2+i)));
Theta(j) = acos(A5(1,3+i));
Psi(j)= atan(A3(1,3+i)/A4(1,3+i));
end
2 件のコメント
Torsten
2019 年 4 月 30 日
j = 0;
for i = 0:3:300
j = j + 1;
Fi(j)= atan(-(A5(1,1+i)/A5(1,2+i)));
Theta(j) = acos(A5(1,3+i));
Psi(j)= atan(A3(1,3+i)/A4(1,3+i));
end
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!