开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜