How can I save my result in a loop when it is an matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi
I used the following code for save my result but it inly save the result for the last step. Can you help me with that, I want to save the resulted matrix in each step.
for i=1:10
for j=1:10
for k=1:100
S{k}=[1/v(i,j),-s(i,j)/v(i,j),-s(i,j)/v(i,j),0,0,0;-s(i,j)/v(i,j),1/v(i,j),-s(i,j)/v(i,j),0,0,0;...
-s(i,j)/v(i,j),-s(i,j)/v(i,j),1/v(i,j),0,0,0;0,0,0,(1+s(i,j))/v(i,j),0,0; 0,0,0,0,(1+s(i,j))/v(i,j),0;0,0,0,0,0,(1+s(i,j))/v(i,j);];
end
end
end
0 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!