1.

A sparse identity matrix is generated by the ______ command.(a) sparseid(b) isparse(c) speye(d) idensparseI had been asked this question in examination.The question is from Sparse Matrices topic in portion Beyond the Basics of MATLAB

Answer»

The CORRECT option is (a) sparseid

The explanation is: The correct COMMAND to generate a sparse identity matrix is the SPEYE command. The issparse command checks whether an INPUT matrix is a sparse matrix. HENCE speye is correct.



Discussion

No Comment Found

Related InterviewSolutions