Question: please show how this is done without using the min() function. In a MATLAB script, write a program that prompts a user to input a
In a MATLAB script, write a program that prompts a user to input a number. The program will then prompt the user to input a different number. Then use an fprintf statement to output which number is smaller. For this question, the use of MATLAB's min() function is not permitted. Determine the smaller number using only relational operators and arithmetic operators. Copy both your script and output into your Word document. Sample Output: Enter a number: 5 Enter a different number: 3 Considering 5 and 3, 3 is smaller. >> Enter a number: 2 Enter a different number: 3 Considering 2 and 3, 2 is smaller
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
