Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Plot multivatiate regression model

6 ビュー (過去 30 日間)
Sarah Yun
Sarah Yun 2019 年 12 月 31 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello,
I have a simple multivariate linear regression model
3 variables
y variable is profit
2 x-variables, sales and refunds
% Group x variables
G = [sales, profit]
model = fitlm(G, profit);
plot(G, profit)
% The plot is not working.
Any ideas? Thank you.
  1 件のコメント
Image Analyst
Image Analyst 2019 年 12 月 31 日
編集済み: Image Analyst 2019 年 12 月 31 日
Can you attach your data for y, sales, and refunds in a .mat file. Make it easy for people to help you, not hard. Thanks. And what sort of model do you want?

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by