How to calculate mean of output in a for loop?

1 次查看(过去 30 天)
I

回答(1 个)

Rik
Rik 2019-12-3
If you want to calculate the mean and the variance you will have to store the output. Since you know the number of iterations, you can preallocate an appropriate vector.

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by