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

2 Solutions

2 Solvers

Last Solution submitted on Jul 10, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...