Question: The following function contains a syntax error. Identify the error and correct it, function result = newCalcualtion (x, y, z) % NEWCALCULATION if nargin =
The following function contains a syntax error. Identify the error and correct it, function result = newCalcualtion (x, y, z) % NEWCALCULATION if nargin = 1 result = x. 3: elseif nargin =1) f = f.*n: end end D. function f = fact(n) if n > 0 f = n.*fact(n-1): else n = 1: end end E. None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
