Question: Consider the two Matrices: A = [ 2 4 5 4 4 1 2 ] , B = [ 4 3 8 ; 1 6

Consider the two Matrices:
A =[2454412], B =[438; 169; 257]
1. Assign a variable "x1" to be the value in the second column of matrix A.
2. Assign variable "x2" to be the 3rd column of matrix B.
3. Assign variable "x3" to be the 3rd row of matrix B.
4. Assign variable "x4" to be the diagonal values in matrix B from top left to bottom right.
5. Create a function file to evaluate the equation y(x)= x^2 Call your function file LN_ModIII where LN is the first 5 letters of your last name (or up to 5 letters if you have a short last name). In your main program, test this function file with the values from #4.(HINT: you will need to use .^2 instead of ^2 in your function since we are calling in values from a matrix to square)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!