Question: MATLAB QUESTION The answer to this question is D) 15. Can someone explain how to come about this solution with steps? 26. Consider the function
MATLAB QUESTION
The answer to this question is D) 15. Can someone explain how to come about this solution with steps?

26. Consider the function mystery1 below, what is the value of y after the following command is executed? function [outvar] mystery1(x)>for n-1:4; y mystery1(n); end persistent a b if isempty(a) A. 1 B. 3 C. 7 D. 15 E. 31 a 0; else b 2*b; end a a b; outvar a end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
