Question: MATLAB only please! Create a function called mymax that takes 5 numerical inputs (n1, n2, n3, ) and finds and returns the maximum value. You

MATLAB only please!

Create a function called mymax that takes 5 numerical inputs (n1, n2, n3, ) and finds and returns the maximum value.

You will need to use multiple if-end statements to make this work.

Thought process: Assume the maximum input is n1. Then check if n1 > n2, if yes than maximum input is n2 and so on.

** P.S. Have seen other codes for similar question, but some of their functions were "unused" and Matlab will not run it because of that issue. So could you please make sure the code works before answering? Maybe post a screenshot of the workspace window? Thanks!

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!