How can i save after each loop the variable in the same vector?
Mostra commenti meno recenti
Hey everybody,
I have a problem. I was writing a for loop. After the loop everytime the solution is printed to a textdocument. After the loop I load the text file again and work with this variables. Is it easier to store the solutions in a vector instead of a textfile. Is there any possibility to change that?
I looking forward to hearing about someones help.
Kind regards Chris
Risposta accettata
Più risposte (1)
Abhishek M
il 8 Apr 2014
Modificato: Abhishek M
il 8 Apr 2014
0 voti
Hi Chris,
Try this
A=10;
b=10;
for i=1:b
A(i)=%%logic;
end
for l=1:b
matA{l,:}=A; %%%% responsible for holding old iteration values
end
Categorie
Scopri di più su App Building 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!