could anyone tell me how to store the result of each iteration in an array for the following code
2 次查看(过去 30 天)
显示 更早的评论
code:
t=4;
r=6;
for it=1:4
output(t,r)=overall_throughput;
output_it(t,r,it)=output(t,r);
end
0 个评论
采纳的回答
Walter Roberson
2018-4-10
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!