MATLAB Answers

storing performance values for each monte-carlo simulations

2 views (last 30 days)
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

  0 Comments

Sign in to comment.

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 11 Feb 2020
Use array
loop
mean_difference(i)=
end

  3 Comments

TESFALEM ALDADA
TESFALEM ALDADA on 11 Feb 2020
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...
KALYAN ACHARJYA
KALYAN ACHARJYA on 11 Feb 2020
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{ }
TESFALEM ALDADA
TESFALEM ALDADA on 11 Feb 2020
ya all the values are numeric(scalar), then will there any change?

Sign in to comment.

More Answers (0)

Sign in to answer this question.