Write a function that determines the shape of the input array x:
Return 'square' if x has the same number of rows and columns.
Return 'rectangular' if x is a non-square matrix with more than one row and more than one column
Return 'row' if x is a row-vector.
Return 'column' if x is a column-vector.
If x is empty ([]), return [].
Note: Some built-in MATLAB functions are disabled for this problem.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers10
Suggested Problems
-
Show me the shape of your array
10 Solvers
More from this Author24
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!