Question: Please use Matlab for this problem, thank you. 2. Create a function (in a function m-file) that has one input and two output variables. The
Please use Matlab for this problem, thank you.
2. Create a function (in a function m-file) that has one input and two output variables. The input is a vector. The first output is a vector containing the squares of the elements of the input vector. The second output is a vector containing the cubes of the elements of the input vector Inside of this function m-file, you must create a subfunction which performs the square of an input value, and you must use that subfunction twice in your main file, to produce your square and cube values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
