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: How to compute a square i.e. a*a?
Replies: 1   Last Post: May 19, 2011 3:12 PM

Advanced Search

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

Posts: 49
Registered: 8/19/10
How to compute a square i.e. a*a?
Posted: May 19, 2011 3:05 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi.

I've a column matrix Y which is mx1.
I like to get the squares of all elements in m.
i.e. something like a*a (e.g. 2*2 = 4)
Due to the matrix nature, I cant just use Y*Y since you cant do a mx1*mx1.
So, how do I do a simple a*a so I could get all my elements in Y as m^2 x 1?
Thank you.



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.