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 !’) A. Output suppressed B. Yeah! C. Error D. No output Answer Workspace Report Discuss Answer with explanation Answer: Option D Explanation 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 !. Workspace
Discuss about the question