Question: Using MatLab ONLY do the following Use the by inspection methods learned in EE 2120 to do problems 4.2 and 4.4 in Attia. Create a

Using MatLab ONLY do the following  Using MatLab ONLY do the following Use the by inspection methods

Use the by inspection methods learned in EE 2120 to do problems 4.2 and 4.4 in Attia. Create a 601x601 matrix with the number pi in every element using the ones() function. Call this matrix B Create a row vector called t that simulates an independent variable that is time, from -3 to 3 in increments of 0.01. Hint: Use the colon operator. Create a matrix A that contains zeros in every element except for the diagonal. On the diagonal should be the values: ennwhere tn is the nth element of the row vector t. Hint: this requires the use of the exp(), diag(), and element wise operation on the vector t 1. 2 3. 4. 5. Create a variable prod t containing the product of all elements of vector t. Hint: this requires the use of prod() 6. Create a variable det A containing the determinant of the matrix A. Hint: this requires the use 7. Create a logical variable check equality containing a logical indicating whether prod_t and 8. Write a conditional statement that would create a matrix new A which contains the addition of of det0) det A are equal. A with the identity matrix if check equality is true and the addition of A with matrix B if it is false. Use reshape) to reshape the matrix A into a vector. Remove all of the zero values in the vector and name it t hat. is t hat equal to t? 9

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 Databases Questions!