Assign multiple results to the same variable
Mostra commenti meno recenti
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 Commenti
Mathieu NOE
il 31 Ago 2023
indexing the varoable is the solution
k = 0;
while ....
k = k+1;
data(k) = ...
end
Chesus
il 31 Ago 2023
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!