Borrar filtros
Borrar filtros

how to run a .mfile in a loop and to save results of each itteration seperatly

1 visualización (últimos 30 días)
i have a .mfile....and o/p of it is set of arrays.....i need it to run 2 times and have to store it in two different set of arrays seperatly ....and this has to be done automatically...
thanks in advance,

Respuesta aceptada

David Sanchez
David Sanchez el 23 de Jul. de 2013
You have to make some changes in your code. Create a cell array to hold your data.
my_data_cell = cell(size_of_data, N_iterations);
Add a flag (N_iterations) signalling each iteration and save your data to a different cell column on each iteration.

Más respuestas (0)

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