Hi, Please I need help solving and plotting this regression in matrix form using Matlab. Thanks a lot

1 件のコメント

Abraham Kaz
Abraham Kaz 2018 年 2 月 25 日
I understand how to set it up in a matrix form on paper but I'm new to Matlab and I have to use Matlab to compute it. Thanks

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

回答 (1 件)

Matt J
Matt J 2018 年 2 月 25 日

0 投票

v=A\z

5 件のコメント

Abraham Kaz
Abraham Kaz 2018 年 2 月 25 日
This is a least square fit problem. I know V = (A*T*A)^-1 A*T*Z. I need help with doing this on Matlab. You wrote V = A/Z. That does not do anything sir
Matt J
Matt J 2018 年 2 月 25 日
No, I wrote v=A\z. It will do exactly what you request.
Abraham Kaz
Abraham Kaz 2018 年 2 月 25 日
編集済み: Abraham Kaz 2018 年 2 月 25 日
How do I do that in Matlab. Could you please provide more details. Thanks
Star Strider
Star Strider 2018 年 2 月 25 日
mldivide,\ (link)
Matt J
Matt J 2018 年 2 月 25 日
At the command prompt, simply enter v=A\z

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

質問済み:

2018 年 2 月 25 日

コメント済み:

2018 年 2 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by