MATLAB SCRIPT HELL. I mean.. help?
A = input ('Please enter a 3x3 real matrix')
transpose = A'
if transpose = A
Symmetric;
elseif transpose = -A
AntiSymmetric;
else Neither;
end
I am writing a script to determine if a matrix is symmetric, antisymmetric or neither. It will not work, saying the equalities I've put in the if section are invalid or something! Can anybody see something wrong?
transpose = A'
if transpose = A
Symmetric;
elseif transpose = -A
AntiSymmetric;
else Neither;
end
I am writing a script to determine if a matrix is symmetric, antisymmetric or neither. It will not work, saying the equalities I've put in the if section are invalid or something! Can anybody see something wrong?
0
Comments
By the way, if you want something to show up on the screen (e.g. Symmetric, AntiSymmetric, Neither) you should use disp(). In a command window, run 'doc disp' for usage and context.
-drasnor