Matrix Division Wrong Answer

As shown in the picture, I want the answer of S1\S2, while matlab gives me a wrong answer. The answer by my hand is [-1.004;0.6768;-0.0356].
Why I can't get the correct answer?

5 件のコメント

Ameer Hamza
Ameer Hamza 2020 年 4 月 14 日
How are the functions Big and Small defined? We cannot run the code, but probably you are making some errors in hand calculation.
Weibo Zhao
Weibo Zhao 2020 年 4 月 14 日
The whole project aims to use the best square approximation for lnx in[5,10].
Ameer Hamza
Ameer Hamza 2020 年 4 月 14 日
Which method did you use to calculate it by hand? MATLAB's calculations are correct. Please recheck your hand calculations
S1 = Big(5,10,2);
S2 = Small(5,10,2);
x = S1\S2;
y = S1*x
S2
Result
y =
1.0e+02 *
0.099786613488757
0.762612807489856
6.032462290899371
S2 =
1.0e+02 *
0.099786613488757
0.762612807489856
6.032462290899371
Same answers.
Weibo Zhao
Weibo Zhao 2020 年 4 月 14 日
That explains a lot! Thank you so much.
Ameer Hamza
Ameer Hamza 2020 年 4 月 14 日
Glad to be of help.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

2020 年 4 月 14 日

コメント済み:

2020 年 4 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by