Feeds
已回答
hello, I'm supposed to check if the matrix is square if not, disp a message. when i used [n,m]=size(A), if n~=m, disp, it seems to work; if i use [n,n]=size(A),
After having defined the matrix A, I'd just type A' - A if MATLAB gives an error, it means that A isn't square : )
hello, I'm supposed to check if the matrix is square if not, disp a message. when i used [n,m]=size(A), if n~=m, disp, it seems to work; if i use [n,n]=size(A),
After having defined the matrix A, I'd just type A' - A if MATLAB gives an error, it means that A isn't square : )
9 months 前 | 0
