Determine the inverse of store it as . Determine Row echelon form of given matrix and store it as R. Determine the rank of a

The Eigen values give the displacement of an atom or a molecule from its equilibrium position and the direction of displacement is given by eigen vectors.
(i) Store the matrix as A.
(ii) For the above matrix A determine the Eigenvalues and store them in E.
(iii) Determine the inverse of A store it as B.
(iv) Determine Row echelon form of given matrix and store it as R.
(v) Determine the rank of A and store it as r.

6 Comments

Since this is obviously your homework assignment, show us what you have tried.
This is an obvious homework assignment, Please show the effort you have made. We will gladly help after that.
Hint:
  • Calculating each of the above have straight forward functions(API) defined in MATLAB. For example: eig(A) calculates the eigenvalues
---------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
Feel free to contact me.
A=[1,1,3;1,3,-1;-2,-4,-4]
A = 3×3
1 1 3 1 3 -1 -2 -4 -4
E=eig(A)
E = 3×1
-3.6201 0.3365 3.2836
B=inv(A)
B = 3×3
4.0000 2.0000 2.5000 -1.5000 -0.5000 -1.0000 -0.5000 -0.5000 -0.5000
R=rref(A)
R = 3×3
1 0 0 0 1 0 0 0 1
r=rank(A)
r = 3
And why do you ask if you know the answers ? Just to double check ? Maybe you don't want the reduced row-echolon form as given by the rref command ?
If you have solved the question, why are you asking it here?
Since this is obviously a homework assignment and OP has not replied to my or @Torsten's queries in more than 3 days, I will be closing the question, if OP does not respond soon.

Sign in to comment.

Answers (1)

Hi Monisha
I understand that you are trying to perform basic operations on a Matrix. Please refer to the following code for achieving the required results.
% (i) Store the matrix as A.
A = [1, 1, 3; 1, 3, -1; -2, -4, -4];
% (ii) For the above matrix A determine the Eigenvalues and store them in E.
E = eig(A);
% (iii) Determine the inverse of A store it as B.
if det(A) ~= 0
B = inv(A);
else
disp('Matrix A is singular and cannot be inverted.');
end
% (iv) Determine Row echelon form of given matrix and store it as R.
R = rref(A);
% (v) Determine the rank of A and store it as r.
r = rank(A);

1 Comment

Please do not do obvious homework assignments for students who have made no effort. In this case, @Monisha has posted several of their assignments. (I caught the others, and recall having closed them in time.) You do them no service by doing their homework for them, except to teach them there is always some poor sot willing to do their work. It teaches them to keep on posting homework with no effort made.
Worse, it actively hurts the site, bec ause not only will they post again, hoping to find someone else willing to do their work for them. But it also convinces other students to do the same.

Sign in to comment.

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

Asked:

on 11 Jan 2024

Edited:

on 14 Jan 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!