Write a matlab program | Computer Science homework help

Write a 

MATLAB program for problem 16 at the end of Chapter 4.  Answer all questions given in the 

Don't use plagiarized sources. Get Your Custom Essay on
Need an answer from similar question? You have just landed to the most confidential, trustful essay writing service to order the paper from.
Just from $11/Page
Order Now

problem.

Your program must contain comments stating purpose of the program and explanations of

different parts of the program.  Write a well organized and commented program.

At the start of the program, the program MUST use disp statements to state the program 

purpose and how it can be terminated.  Then it must get input from the user.  If the 

inputted Rs is not positive, then terminate the program.

Your program could use a while loop as follows.

.

.

.

Rs = input(‘Enter a resistor value: ‘) ;

while Rs > 0

.

.

.

Rs = input(‘Enter a resistor value: ‘)

end

.

.

Provide a program listing, and a print out of problem (program) results.