Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Saving data in a matrix from loop

조회 수: 3 (최근 30일)
Swarnava Pramanik
Swarnava Pramanik 2015년 3월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
I have a 7600 * 3 martix which is looped over 10 times. When I'm assigning an array to store this data using a for loop only the last (7600 * 3 matrix data) is being stored. But I need all the 10 data sets of 7600 * 3 matrix as i have to plot a graph using these. Please kindly suggest what should I do to get all the 10 sets of data.
  댓글 수: 1
dpb
dpb 2015년 3월 12일
What's the resulting output size of the processing of this array each time? Basically you need to preallocate enough room for whatever this is 10 times in the proper shape and index into that array appropriately. What is "appropriate" depends on the answer to the above questions (and also the type if not just an array).

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by