Question: Given the following function q35, what will the outputs in the command window be? Output 1: (2 points) 35. >clear >> edit q35 5>q35(3) >2435(4)

 Given the following function q35, what will the outputs in the

Given the following function q35, what will the outputs in the command window be? Output 1: (2 points) 35. >clear >> edit q35 5>q35(3) >2435(4) Output 1) >q35(-2) >q35(5) (Output 2) function q35(n) persistent ent disp(n) if isempty(cnt) cnt-0; end if n>=1 cnt-cnt+n else Output 2: (2 points) cnt cnt-n; end disp(cnt)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!