Find roots of quadratic matrix polyunomial
4 次查看(过去 30 天)
显示 更早的评论
I'd like to solve the following equation
where
are square complex matrices.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1433413/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1433418/image.png)
0 个评论
回答(1 个)
Malay Agarwal
2023-7-13
% Define the matrix A as a complex matrix
A = complex(randn(5,5), randn(5,5));
% Define the equation function handle
eq = @(X) A*X^2 + X + A;
% Define the initial guess for X
x0 = complex(randn(5, 5), randn(5, 5));
% Solve the equation for X using fsolve
X_solution = fsolve(eq, x0);
% Display the solution for X
disp('Solution for X:');
disp(X_solution);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!