save data from all loop iterations

3 visualizaciones (últimos 30 días)
Ahmed Alshehhi
Ahmed Alshehhi el 20 de Abr. de 2018
Comentada: Stephen23 el 20 de Abr. de 2018
for I=1:10 //calculation for j=1:10 //calculation end end I want to save all the data because the saving method that I used it give my the last result only. Can anyone help my?
  1 comentario
Stephen23
Stephen23 el 20 de Abr. de 2018

Use indexing. How to use loops and indexing is explained in the introductory tutorials:

https://www.mathworks.com/help/matlab/getting-started-with-matlab.html

Iniciar sesión para comentar.

Respuestas (1)

Birdman
Birdman el 20 de Abr. de 2018

You need to read about for loop and subscripting.

https://www.mathworks.com/help/matlab/ref/for.html

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by