Question: 1. Write a MATLAB code to find the eigenvalues and eigenvectors of a 3x3 real symmetric matrix. The program should ask a user to enter

 1. Write a MATLAB code to find the eigenvalues and eigenvectors

1. Write a MATLAB code to find the eigenvalues and eigenvectors of a 3x3 real symmetric matrix. The program should ask a user to enter the 3x3 matrix and output each eigenvalue and the corresponding eigenvector. You are not allowed to use any MATLAB built-in functions except rots. Using [A]= [4 3 1:3 7-1; 1-19] check the accuracy of your code by comparing with the eigenvalues and eigenvectors obtained from the MATLAB eig command. (25 marks) 1. Write a MATLAB code to find the eigenvalues and eigenvectors of a 3x3 real symmetric matrix. The program should ask a user to enter the 3x3 matrix and output each eigenvalue and the corresponding eigenvector. You are not allowed to use any MATLAB built-in functions except rots. Using [A]= [4 3 1:3 7-1; 1-19] check the accuracy of your code by comparing with the eigenvalues and eigenvectors obtained from the MATLAB eig command. (25 marks)

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!