storing simulation data in a loop

3 次查看(过去 30 天)
millennium
millennium 2014-1-27
assume we create some samples from normal distribution by mont carlo method and use each of the sample in a optimization problem and finally compute the expected value of all answers. in each iteration the result substitude the previous one.how we can do optimization in each iteration without deleting the previous outputs and finally compute the expected value of all results? please guide me how to define the answer matrix for mentioned purpose. thanks.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by