How can I Save a matrix generated from for loop into an array
Mostrar comentarios más antiguos
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 comentario
Walter Roberson
el 19 de Mzo. de 2022
Editada: KSSV
el 19 de Mzo. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!