1.

What is the command used to generate a sparse normally generated matrix?(a) sparserndn(b) sprandom(c) sprandn(d) no such commandI have been asked this question in an interview.My question is from Sparse Matrices in portion Beyond the Basics of MATLAB

Answer»

Correct choice is (c) sprandn

The BEST I can explain: The sprandn command USES the same random number GENERATOR as that of the randn command. The rest of the commands don’t EXIST.



Discussion

No Comment Found

Related InterviewSolutions