matlab table selecting values
Mostrar comentarios más antiguos
i want to use a for loop to go through the values in a table with 10 rows and 1 column one by one. so far my code reads the whole table at the same time
thanks
Respuesta aceptada
Más respuestas (1)
Tala
el 8 de Mayo de 2021
I am not sure what do you mean by go through the values. This should solve your problem you:
myCell = {1; 2; 3;4;5;6;7;8;9;10};
for i=1:height(myCell)
D=myCell{i};
display(D)
end
3 comentarios
Emily Platt
el 8 de Mayo de 2021
Tala
el 8 de Mayo de 2021
This is what I see, running the code I posted. I see one value at a time. I might be missing something tho!
Can you give me an example? What do you expect to see?

Image Analyst
el 8 de Mayo de 2021
She wants a table, not a cell array.
Categorías
Más información sobre Tables en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!