Question: Read the given MATLAB codes, answer the following three questions: ele clear % get n=mput('entern:); if no disp'errors must be non negative!). elseif round(n) =n

 Read the given MATLAB codes, answer the following three questions: ele

Read the given MATLAB codes, answer the following three questions: ele clear % get n=mput('entern:"); if no disp'errors must be non negative!). elseif round(n) =n displerror--n must be an integer!'); else ifn=0 fact=1 else fact=1. for ilin fact=fact is end end disp([int2str(n)." =" int2str(fact)); end (1) if n = -4 write down the output. (2) if n = 0.4 write down the output (3) if n = 4 write down the output

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!