Matrix problem with script

조회 수: 3 (최근 30일)
donnie
donnie 2016년 4월 28일
답변: Kevin 2016년 4월 29일
Create a Matlab Script that will take the a Matrix A and Matrix B (of AX=B), then calculate the Determinant of Matrix A, Inverse of matrix A , Solution vector X, Rank of Matrix of A, Eigen Values and Eigen Vectors of A. You should use det, inverse, inverse(A)*B, rank, and eig functions of Matlab.
  댓글 수: 1
Roger Stafford
Roger Stafford 2016년 4월 28일
You really should make a good start on your problem before presenting it to this forum.

댓글을 달려면 로그인하십시오.

답변 (1개)

Kevin
Kevin 2016년 4월 29일
Actually this is why I would pay $2000 for MATLAB. Let see how easy it is in MATAB.
function s = swissarmyknife(A,B)
s = struct;
s.detA = det(A);
s.invA = inv(A); % Assume A is square and invertible.
s.x = A\B;
[s.V, s.D] = eig(A);
end

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by