The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Matrix dimensions must agree
Replies: 7   Last Post: Oct 20, 2011 2:30 PM

Advanced Search

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

Posts: 5
Registered: 10/20/11
Re: Matrix dimensions must agree
Posted: Oct 20, 2011 12:02 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Matt J" wrote in message <j7pf7q$9b3$>...
> "Halley" wrote in message <j7pdmt$3o9$>...
> >
> > %Calculate old values
> > rho(i) = (x_a(i,:).*A.*x(:,i))./(x_a(i,:).*B.*x(:,i))

> ========
> I suspect you mean to do * instead of .*
> In any case, the sizes definitely aren't compatible for the .* operation

I think this is the simplest solution, thanks.

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.