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

4 Solutions

4 Solvers

Last Solution submitted on Jul 13, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...