Store output data from a for loop into a matrix?
Mostra commenti meno recenti
Hello guys, I'm running this code:
for t =0.02:0.02:0.06
v0=((0.02)/2)*(b+a);
i=i+1;
j=j+1;
a=A(i);
b=A(j);
v1=v0+v1
end
And the results are shown as:
v1 = 2.50
v1 = 7.43
v1 = 0.0001
However I want these results to be stored in a matrix of one column to look like this:
V= [2.5, 7.43, 0.001]
How can I do this?
Thanks in advance
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Data Export to MATLAB 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!