Matrix problem with script
2 ビュー (過去 30 日間)
古いコメントを表示
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
2016 年 4 月 28 日
You really should make a good start on your problem before presenting it to this forum.
回答 (1 件)
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
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!