Info

此问题已关闭。 请重新打开它进行编辑或回答。

Plot multivatiate regression model

1 次查看(过去 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