could anyone tell me how to get the iterations with different values in the code where rng is used
1 次查看(过去 30 天)
显示 更早的评论
I am calculating the throughput using different values of rng. After calculating the throughput i want to run the code with respect to different iterations. but i am getting the same values of throughput wit respect to different iterations.
could anyone tell me how to get different values of throughput with respect to different iterations.
0 个评论
采纳的回答
Walter Roberson
2018-4-10
Store the results of each iteration in an array.
Use cell arrays if you need to.
Use nested cell arrays if you need to.
Store everything you might need later. You can always go back afterwards and clean up the parts you did not turn out to need.
Rule of programming: get it to work first, optimize afterwards.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!