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

1 次查看(过去 30 天)
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 个评论
Dyuman Joshi
Dyuman Joshi 2024-1-14
编辑:Dyuman Joshi 2024-1-14
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.

请先登录,再进行评论。

回答(1 个)

Gagan Agarwal
Gagan Agarwal 2024-1-14
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 个评论
John D'Errico
John D'Errico 2024-1-14
编辑:John D'Errico 2024-1-14
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by