How to plot a single column of values with a linear regression line through it
Ältere Kommentare anzeigen
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 Kommentare
darova
am 19 Feb. 2020
What about polyfit?
isamh
am 24 Feb. 2020
Image Analyst
am 24 Feb. 2020
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
am 24 Feb. 2020
- I added the: save('answers.mat', 'X', 'Y'); to both codes and still didnt the regression line.
Image Analyst can you cooperate?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Linear and Nonlinear Regression finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!