I want to add a line of best fit to my plot using the polyfit function.
Mostra commenti meno recenti
%Plot graph 1
figure(2); clf
plot(xL(A),anglex,'ko');
2 Commenti
darova
il 15 Ago 2019
Can you show something more?
John D'Errico
il 15 Ago 2019
Note that the simplest way to add that line of best fit is to plot your data, then use the basic fitting tools menu item on the plot itself.
Risposta accettata
Più risposte (1)
Image Analyst
il 16 Ago 2019
0 voti
See attached demo of polyfit where I fit a line and a dubic to some data.
Attach your data and show a screenshot of it plotted if you want anymore help.
Categorie
Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!