开发者

Difference between NULL and Empty matrices in Matlab

开发者 https://www.devze.com 2023-01-30 13:54 出处:网络
I have a very simple question - Difference between NULL and empty matrices in MATLAB? NULL CASE: a 开发者_开发知识库= null(1) --> a is 1x0 matrix

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

精彩评论

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