Question: Create a function on Scilab 8.2 Create a function called MPA that will take a 23 matrix (called A ) and a 2X1 matrix (called
8.2 Create a function called "MPA" that will take a 23 matrix (called "A" ) and a 2X1 matrix (called " B ") that the user enters before the function is run and will take the elements of the first matrix to the power of the matching row of the second matrix and then add up the rows to get a 21 matrix. Save your SciNotes file as YourName_HW8_2 Sample answer: If the user enters 435546andB=2 C=MPA(A,B) The output of the function will be 50 405 i.e. 42=1653=12543=6463=21632=952=25125+64+216=40516+9+25=50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
