Integrating mnvpdf using integral2
Show older comments
Hi,
I have a question about integrating mvnpdf using integral2. I have
myPDF = @(x,y) mvnpdf([x,y],[1,2],[1,0;0,1])
result = integral2(myPDF,-100,100,-100,100);
When I try to run this I get the error:
Error using mvnpdfX
X and MU must have the same number of columns
Thanks for your help...
Accepted Answer
More Answers (0)
Categories
Find more on Adding custom doc 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!