How can I Save a matrix generated from for loop into an array
古いコメントを表示
I have been trying to save the data generated in the Hinge matrix for the four for loops in an array consist of 10,000 page where each page contains the 4x4 Hinge matrix generated inside the four for loops. There are four for loops for 10 preceding variables so the total result is 10^(4) solutions possible for the Hinge matrix.
Q=23;
F=67'
for Y=2:4:38;
for W=-188:13:-71;
for G=77:18.64:244.76;
for P=0.5:0.0112:0.6008;
Hinge=[Y+W, Y+G, Y+Y, Q;
Y+21-W*G, G+11.88*F, Q, F;
F+Q+W, F*G*W, F*1.88*P, P;
0, 0, 0, 1];
end
end
end
end
1 件のコメント
Walter Roberson
2022 年 3 月 19 日
編集済み: KSSV
2022 年 3 月 19 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!