Add new double array within cell for each iteration in a for loop
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rudolf
el 30 de Abr. de 2021
Comentada: Rudolf
el 2 de Mayo de 2021
I'm trying to get many values out of an excel sheet.
Is it possible to have a cell variable which gets added one more array of double values for each iteration, and how do i write it?
Outside a for loop i can write:
hourValues{1} = some code;
hourValues{2} = some code;
hourValues{3} = some code;
and i will get a 1x3 cell named hourValues which with some code will contain my 3 arrays of double. But how to write this inside a for loop?
0 comentarios
Respuesta aceptada
Matt J
el 30 de Abr. de 2021
hourValues=cell(1,3);
for i=1:3
hourValues{i} = some code;
end
3 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!