How can I Save a matrix generated from for loop into an array
Show older comments
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 Comment
Walter Roberson
on 19 Mar 2022
Edited: KSSV
on 19 Mar 2022
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!