Difference between NULL and Empty matrices in Matlab
I have a very simple question - Difference between NULL and empty matrices in MATLAB?
NULL CASE: a 开发者_开发知识库= null(1) --> a is 1x0 matrix EMPTY CASE: a = [] --> a is 0x0 matrix
Thanks!
There is no real "null" in MATLAB, only empty or non-empty arrays. The null you are referring to is a function NULL which computes the orthonormal basis for the null space of a matrix. It is a linear algebra function, not a function for initializing a matrix.
精彩评论