could anyone tell me how to store the result of each iteration in an array for the following code
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Prabha Kumaresan
am 10 Apr. 2018
Kommentiert: Prabha Kumaresan
am 12 Apr. 2018
code:
t=4;
r=6;
for it=1:4
output(t,r)=overall_throughput;
output_it(t,r,it)=output(t,r);
end
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 10 Apr. 2018
t=4;
r=6;
for it=1:4
output(t,r)=overall_throughput;
output_it(t,r,it)=output(t,r);
all_output{it} = output;
all_output_it{it} = output_it;
end
Now a complete record of the results of the iterations is stored in all_output and all_output_it
5 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Operators and Elementary Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!