Menu

(Solved) : 7 Write Matlab Code Called Bigm Takes Input List Positive Numbers One Time Stopping Zero E Q44143936 . . .

7. Write Matlab code called big.m that takes as input a list of positive numbers one at a time, stopping when zero is entered

7. Write Matlab code called big.m that takes as input a list of positive numbers one at a time, stopping when zero is entered. It should output the number of numbers entered (before the zero), as well as the largest number in the list. For example, if the input numbers (one per line) were 1, 5, 2, 7, 3, 0, then the output would be that there are 5 numbers, and the maximum is 7. I expect you will use a loop with a conditional statement inside it. Make sure you follow the guidelines with regard to commenting, preamble, and nicely for- matted output. Submit your Matlab file. Show transcribed image text 7. Write Matlab code called big.m that takes as input a list of positive numbers one at a time, stopping when zero is entered. It should output the number of numbers entered (before the zero), as well as the largest number in the list. For example, if the input numbers (one per line) were 1, 5, 2, 7, 3, 0, then the output would be that there are 5 numbers, and the maximum is 7. I expect you will use a loop with a conditional statement inside it. Make sure you follow the guidelines with regard to commenting, preamble, and nicely for- matted output. Submit your Matlab file.

Expert Answer


Answer to 7. Write Matlab code called big.m that takes as input a list of positive numbers one at a time, stopping when zero is en…

OR