Working with large numbers of vectors

조회 수: 1 (최근 30일)
jrz
jrz 2022년 11월 21일
편집: jrz 2022년 11월 21일
I have a set of 1000 vectors (each 14x1) that I have from experimental data. Each vector corresponds to a specific time and I need to run some caluclations on each of them. Is there a way to arrange them so that they can be accessed for calculations with something like a for loop?
  댓글 수: 3
jrz
jrz 2022년 11월 21일
Apologies, I have found a solution. Thank you
Stephen23
Stephen23 2022년 11월 21일
"Is there a way to arrange them so that they can be accessed for calculations with something like a for loop?"
Of course: simply store them all in one array (which could be a matrix, a 3D array, a container array e.g. cell array or structure). Adding them into one array is simple when you import the data:

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

채택된 답변

Jan
Jan 2022년 11월 21일
Of course: If all vectors have the same size, concatenate them to a matrix.
How are the 5000 vectors stored currently?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by