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: How to inform Matlab that a matrix is symmetric.
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 31
Registered: 12/13/04
How to inform Matlab that a matrix is symmetric.
Posted: Mar 10, 2013 3:49 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On one occasion (I don't remember the exact circumstance), when was editiing a .m file, Matlab detected an expression whose effective result was X'*X. It helpfully suggested that I replace the expression by X'*X so that it could be guaranteed symmetric. I took this to mean that Matlab stores a flag in its internal matrix representation whose truth implies symmetry. Is there any Matlab documentation as to when an expression results in a matrix that is regarded by Matlab as symmetric?

If I know that the result (S) of a certain calculation must be symmetric (upto rounding error), then how should I tell Matlab that S is symmetric? For example, if I wrote:
S = (S+S')/2
S = max(S, S')
would this be sufficient?

Thank you,

Best Regards,

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.