How to plot a single column of values with a linear regression line through it
古いコメントを表示
I have a column that I wann plot and have a regression line go through it, How would I do that?
my code so far is:
figure(1)
title('Phase1')
plot(FG)
5 件のコメント
darova
2020 年 2 月 19 日
What about polyfit?
isamh
2020 年 2 月 24 日
Image Analyst
2020 年 2 月 24 日
Attach X and Y in a mat file so we can show you.
save('answers.mat', 'X', 'Y');
In the meantime, see my attached polyfit() demo.
darova
2020 年 2 月 24 日
- I added the: save('answers.mat', 'X', 'Y'); to both codes and still didnt the regression line.
Image Analyst can you cooperate?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Linear and Nonlinear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!