Plotting the trend line without plotting the data
Mostra commenti meno recenti
I am trying to plot the trend line for three year data combined, So basically trend line on top the attached scatter plot.
% stack all three years to plot the trend line
msid_3yr = [icedrift_bg_2007;icedrift_bg_2015;icedrift_bg_2017];
wspd_3yr = [wspd_bg_2007;wspd_bg_2015;wspd_bg_2017];
%If i use the following it replaces the existing scatter plot colour dots
mdl = fitlm(wspd_3yr,msid_3yr,'linear')
plot(mdl)
Risposta accettata
Più risposte (1)
Chad Greene
il 25 Mar 2021
Categorie
Scopri di più su Interpolation 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!