i have a proplem with some matrix
3 次查看(过去 30 天)
显示 更早的评论
how can i get [10 0;0 10] and [-10 0 ;0 -10] from squre root of [100 0;0 100] ali
0 个评论
回答(2 个)
Geoff Hayes
2014-12-23
Ali - if you assume that all elements in your matrix are positive, then you could use the sqrt function as
A = [100 0 ; 0 100];
R1 = sqrt(A);
R2 = -sqrt(A);
mohammad
2014-12-23
You can use this
A = [100 0 ; 0 100];
syms B
solve('B*B-A')
this gives you two answers and if arrays of A are negative, there will be no problem.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!