Same number of Rows and Cols of a matrix (N*N)
1 view (last 30 days)
Show older comments
Hello,
I would like to make a program that requires a matrix A to be square (n*n)
for exmple :
[a,b]=size(A)
if a ~= b
input('Error')
end
Is there a matlab function for this ? without using [a,b]=size(A) ?
Thank you in advance
1 Comment
Rik
on 21 Feb 2020
Backup of question:
Title:
Same number of Rows and Cols of a matrix (N*N)
Body:
Hello,
I would like to make a program that requires a matrix A to be square (n*n)
for exmple :
[a,b]=size(A)
if a ~= b
input('Error')
end
Is there a matlab function for this ? without using [a,b]=size(A) ?
Thank you in advance
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!