INV(A)*b can be slower and lass accurate than A/b./ consider using A/b for INV(A)*b or b/A for b*INV(A). how to get rid of this warning

i am getting this errror in the following code alfa = inv([r00 r11 r10 r12; r11 r00 r01 r01;r10 r01 r00 r02; r12 r01 r02 r00])*[r01 r10 r11 r11];

 採用された回答

Stephen23
Stephen23 2015 年 2 月 26 日
編集済み: Stephen23 2015 年 2 月 26 日
Either:
  • Change to use the recommended operation, then this message will go away.
  • Suppress the message: right-click on that wavy-red line and accept "Suppress INV(A).b..." -> "On This Line".
The best solution is to change your code to use the recommended operation:
[r00 r11 r10 r12; r11 r00 r01 r01;r10 r01 r00 r02; r12 r01 r02 r00] / [r01 r10 r11 r11];

その他の回答 (1 件)

カテゴリ

ヘルプ センター および File ExchangeFit Postprocessing についてさらに検索

タグ

質問済み:

2015 年 2 月 26 日

編集済み:

2015 年 2 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by