Working with large numbers of vectors
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
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
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!