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!