1.

In the function vpa(‘9^81’,10), why do we put 9^81 within inverted commas?(a) We can choose to not put the value within a pair of single inverted comma(b) We do it so that we don’t get an approximated value(c) We do it to get the exact value as MATLAB computes exact values, of numerical expressions, when declared within a string(d) We do it to get a floating-point approximated value, approximated to 14 digitsThe question was asked in examination.I'm obligated to ask this question of Algebra topic in portion MATLAB Basics of MATLAB

Answer»

Correct choice is (c) We do it to GET the exact value as MATLAB computes exact values, of numerical expressions, when declared within a string

The BEST I can explain: Variable precision arithmetic in MATLAB is perfected by COMPUTING exact values and exact values are evaluated if the numerical expression is within a string. By not PLACING the pair of inverted COMMAS, we get a floating point approximated value.



Discussion

No Comment Found

Related InterviewSolutions