In Matlab:
Write a Script that tests to see if the input value given by auser is negative. If it is
negative, use fprintf to print the message to the screen :
Warning: The input value n is negative.
where n is not literally the letter n, but is the value of theinput to the function.
Assume the input value is a floating-point number, so use anappropriate format in
the fprintf to print the value with 2 decimal places. If the valueof the input is not
negative, don’t print anything.
Expert Answer
An answer will be send to you shortly. . . . .