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

5 Solutions

5 Solvers

Last Solution submitted on Jul 14, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers5

Suggested Problems

More from this Author12

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!