1.

The non-zero elements in a sparse matrix are shown by the ______ command.(a) nzeros(b) nonzeros(c) notzeros(d) nozeroThis question was addressed to me during an interview.The question is from Sparse Matrices in portion Beyond the Basics of MATLAB

Answer»

The correct CHOICE is (b) nonzeros

The EXPLANATION: The non-zeros COMMAND is used to get the non-zero elements present in the sparse MATRIX. The rest of the OPTIONS are not defined in MATLAB.



Discussion

No Comment Found

Related InterviewSolutions