ismatrix1

Work-around for error in built-in function ismatrix (2010b). Only returns 1 for matrices
356 Downloads
Updated 22 Nov 2010

View License

Built-in function ismatrix() (2010b) returns 1 for scalars, vectors, strings, and empty variables, as well as for matrices.

ismatrix1() corrects it to return 1 only for matrices.
It returns 0 for for scalars, vectors, strings, and empty variables.

ismatrix1_test gives examples of using ismatrix and ismatrix1() on scalars, vectors, strings, and matrices.

Cite As

Carey Smith (2026). ismatrix1 (https://uk.mathworks.com/matlabcentral/fileexchange/29486-ismatrix1), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Multidimensional Arrays in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0