1.

What is the default return type of the rand command?(a) Single(b) Double(c) Signed(d) UnsignedThe question was posed to me in an online quiz.The above asked question is from Random Number Generation topic in section Beyond the Basics of MATLAB

Answer»

The CORRECT ANSWER is (b) Double

To elaborate: The default RETURN type of the rand command is double. It can be changed to single by GIVING single as a string input to the rand command.



Discussion

No Comment Found

Related InterviewSolutions