Write a function that determines whether the input matrix x is square.
  • Return true if x has the same number of rows and columns.
  • Return false otherwise.
  • If x is empty ([]), return [].
Note: Some built-in MATLAB functions are disabled for this problem.

Solution Stats

7 Solutions

6 Solvers

Last Solution submitted on Jul 11, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers6

Suggested Problems

More from this Author10

Problem Tags

Community Treasure Hunt

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

Start Hunting!