Assign multiple results to the same variable
Mostrar comentarios más antiguos
I'm doing a code that uses while, and inside that while is a variable whose value gets changed every instance, I want to store all those values on a single variable to table it later, how can I do that?
3 comentarios
Mathieu NOE
el 31 de Ag. de 2023
indexing the varoable is the solution
k = 0;
while ....
k = k+1;
data(k) = ...
end
Chesus
el 31 de Ag. de 2023
Stephen23
el 31 de Ag. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Logical 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!