What is the output of the following code?
A=[1 2 3; 4 5 6; 7 8 9];if( nzmax(A)==nzmax(spones(A) ) disp(‘Yeah !’)
Answer with explanationAnswer: Option D
The correct answer is No output
There is no error in the above code. Since, if the command is not ended, no output will be generated. If the if command was ended, the output would’ve been Yeah !.
Discuss about the question