Using MATLAB command can anyone solve this questio
조회 수: 1 (최근 30일)
이전 댓글 표시
For a linear system A²x=b is such that A is non singualr with A=2x2 matrix and b=2X1 find the solution
댓글 수: 0
답변 (3개)
Chunru
2021년 12월 5일
% Some random input
A = rand(2, 2)
b = rand(2,1)
% Solution
x = (A*A)\b
% To veryfy that: A*A*x = b
A*A*x
댓글 수: 0
Iqra Maqbool
2021년 12월 5일
댓글 수: 1
Chunru
2021년 12월 5일
A = rand(2, 2);
Ainv = inv(A); % Ainv is given
b = rand(2,1);
% Solution
x = Ainv*Ainv*b
Walter Roberson
2021년 12월 5일
syms A [2 2]
syms b [2 1]
syms x [2 1]
eqn = A^2 * x == b
solution = solve(eqn, x)
댓글 수: 1
Walter Roberson
2021년 12월 5일
syms A [2 2]
syms b [2 1]
syms x [2 1]
eqn = inv(A) * x == b
solution = solve(eqn, x)
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!