Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Matlab for both of these questions!!!! Not sure how to write these different functions. Write a function named createMatrix whose inputs are two integers
In Matlab for both of these questions!!!! Not sure how to write these different functions.
Write a function named createMatrix whose inputs are two integers m and n, where mn. The function will return a matrix with two rows. The first row contains the integers from m to n. The second row contains the integers n to m in reverse order. The following is an example of how your function would be used in the command window: >> createMatrix (2,7) ans = 273645546372 Write a function named getMaxMin whose inputs are four numbers. The function will return a row matrix with two answers. The first answer will be the maximum of the four numbers. The second answer will be the minimum of the four numbers. The following is an example of how your function would be used in the command window: getMaxMin(5.7,2.3,11.6,8.8) ans = 11.65.7Step 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