Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Error : Inner matrix dimensions must agree When computing the three dimensional integral.
Replies: 7   Last Post: Jun 24, 2013 11:14 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
yolanda

Posts: 5
Registered: 6/19/13
Error : Inner matrix dimensions must agree When computing the three dimensional integral.
Posted: Jun 19, 2013 12:02 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Error : Inner matrix dimensions must agree When computing the three dimensional integral.

The code is as follows:

m1 = 20;
v1 = 60;
m2 = 20;
v2 = 60;
m3 = 20;
v3 = 60;
cov = [ 60,0,0;
0,60,0;
0,0,60]
cov1=inv(cov)

f = @(z,y,x) exp( ([(x-m1),(y-m2),(z-m3)]*(cov1)*[(x-m1);(y-m2);(z-m3)])./(-2) )
P1 = triplequad(f,0,1000,0,1000,0,1000);

I am eager to getting the solution.... Anyone has any comments? I would appreciate !!!!!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.