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 - 1x0 matrix EMPTY CASE: a = [] → a - 0x0 matrix

Thank!

+3
source share
1 answer

There is no real "null" in MATLAB, only empty or non-empty arrays . The zero you are referencing is a NULL function that computes an orthonormal basis for the zero matrix space. This is a function of linear algebra, not a function for initializing a matrix.

+9
source

Source: https://habr.com/ru/post/1780498/


All Articles