Question: fill in the blank space for the function mypower(). Make sure that you read carefully the function specifications, i.e. what it takes as input and

fill in the blank space for the function mypower(). Make sure that you read carefully the function specifications, i.e. what it takes as input and what it returns
von WNP Fill in the blank space for the function myPower(). Make sure that you read carefully the function specifications, i.e. what it takes as input and what it returns. Efunction result = myPower(x,y) E% calculates x to the power of y, i.e. X^y % Input: x is a 2D array of integers y is an integer, a scalar % Return: 2D array the same size as x where each element is raise to the % power of y 8 end Here are two example runs of this function: >> X = 5; y = 3; >> result = myPower(x, y) result = 125 >> X = [2 3; 4 5]; y = -2; >> result = myPower(x, y) result = 0.2500 0.0625 0.1111 0.0400
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
