필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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,

채택된 답변

David Sanchez
David Sanchez 2013년 7월 23일
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.
  댓글 수: 2
David Sanchez
David Sanchez 2013년 7월 23일
a flag is just another variable. In the example given, N_iterations could be your flag.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by