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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started