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 comentarios

Benjamin Thompson
Benjamin Thompson el 21 de Nov. de 2022
Please post a sample data set and more information about how you would like to arrange or use the data.
jrz
jrz el 21 de Nov. de 2022
Apologies, I have found a solution. Thank you
Stephen23
Stephen23 el 21 de Nov. de 2022
"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:

Iniciar sesión para comentar.

 Respuesta aceptada

Jan
Jan el 21 de Nov. de 2022

0 votos

Of course: If all vectors have the same size, concatenate them to a matrix.
How are the 5000 vectors stored currently?

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

jrz
el 21 de Nov. de 2022

Editada:

jrz
el 21 de Nov. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by