error when using mvncdf
2 views (last 30 days)
Show older comments
I am using mvncdf. Here is my code
xl=[-Inf,-Inf,-c1,-Inf,c0,-Inf,-Inf,-Inf,0];
xu=[-c1,Inf,c1,Inf,Inf,Inf,0,Inf,Inf];
mu=zeros(1,9);
sig is a 9 by 9 symmetric and positive definite matrix (checked that sig==sig')
When I tried to run
err=mvncdf('xl',xl,'xu',xu,'mu',mu,'SIGMA',sig);
an error msg popped out "Error using mvncdf (line 109) XL and XU must be matrices and have the same size.
Error in prob_err_gq_b (line 53) err=mvncdf('xl',xl,'xu',xu,'mu',mu,'SIGMA',sig);"
However I checked that EDU>> size(xl)
ans =
1 9
EDU>> size(xu)
ans =
1 9
what is the problem?
0 Comments
Answers (1)
See Also
Categories
Find more on Motor Drives in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!