Hi, is it present a native matlab command able to verify if a matrix, or an array, given as input is only composed by zero-values? Often i use the find function with the condition matrix == 0 and then i check if the results of find function is equal to the length of the input matrix or array. Thank you!
MATLAB: Matrix or array composed by zero-values
arrayfindmatrixzero values
Related Question
- Does the generated code produce different results than MATLAB when data is complex with zero-valued imaginary parts in C++ code, but real in MATLAB
- Do the zero-valued elements of the state-space matrices for the Discrete State-Space block not appear in the code that Real-Time Workshop 6.6 (R2007a) generates
- Calculate the number of nonzero rows
- Extract non-zero elements from matrix with double precision numbers
Best Answer