How to save, for loop
Mostra commenti meno recenti
Example:
for i=1:n X=DATA1(i,1); Y=DATA2{1,i}; Z=X-Y;
end
what I want is that it saves the data to Z, summing them, so, for i=1 , Z=[1 2 3 4 5], for i=2 Z becomes Z=[1 2 3 4 5 6 7] etc.
so i need to do something with Z but dont know what. currently it only shows the result of the last i.
2 Commenti
Image Analyst
il 14 Dic 2012
Do you really have X as a numerical array (double, etc.) and Y as a cell array???
Hello kity
il 14 Dic 2012
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!