How can I stabilize the matrix left division (i.e. "\")?

3 ビュー (過去 30 日間)
Milena Carniel
Milena Carniel 2023 年 11 月 28 日
回答済み: Bruno Luong 2023 年 11 月 28 日
I have a problem using the matrix left division operator (i.e. " \ ").
In particular, it happens to me that if I apply the operator on the same matrix and using the same Matlab version (2023a) but using two different PC, I obtain two different results.
I think that the problent could be that I'm working with a singular matrix. However I'd like to find a way to solve the calculation obtaining the same results even if I use different PC, maybe forcing the same settings of the operator.
Can you help me?

回答 (2 件)

Matt J
Matt J 2023 年 11 月 28 日
You cannot. You must regularize the problem somehow and make the matrix non-singular.

Bruno Luong
Bruno Luong 2023 年 11 月 28 日
Try pinv, lsqminnorm it can stabilize somewhat the inversion with (near) singular matrix. Both bave a tolerance argument to tune the stability?

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by