storing performance values for each monte-carlo simulations

I have a randomly generated vectors to be multiplied by a function (f) to have simulated result. and then this simulated result will be campared for perfomance of mean difference with observed data for each random numbers. So how can i store the mean difference values for each sampling points?
cheers
Tesfalem

 Accepted Answer

Use array
loop
mean_difference(i)=
end

3 Comments

hello Kalyan,
my data is here,
Qsim=100*10 matrix and
Qobs=100*1;
there are 10 simulations with length of 100; and the Qobs has also one column with length of 100 values.
So the idea is to compare mean difference of Qobs with 10 simulations of Qsim and finally to select the one having smaller difference. how to code this?
Appreciate your advice...
Save the Qobs in cell array
If in each Qobs is single numeric (scalars), use as array Qobs(i), otherwise if Qobs result is vector, use cell array
Qobs{ }
ya all the values are numeric(scalar), then will there any change?

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!