1.

What happens if we don’t assign a variable to an expression which evaluates a numerical value?(a) MATLAB shows error(b) Nothing happens(c) The evaluated values are assigned to a variable ans automatically(d) Depends on the numerical valueThe question was asked in examination.This key question is from Algebra in division MATLAB Basics of MATLAB

Answer» RIGHT option is (c) The evaluated values are ASSIGNED to a variable ans automatically

Explanation: This is common for MATLAB. The evaluated numerical values are assigned to a variable ans if there is no BODY in the right hand side of a numerical expression. So the OPTIONS MATLAB shows error is false.


Discussion

No Comment Found

Related InterviewSolutions