how to fit a trend line in plotyy ?
Mostra commenti meno recenti
% code
y = [1:120]';
plotyy(y,data1,y,data2);
hold on
% plot(y,intercept + slope*y);
according to this code how can fit a trend line in data2
Risposta accettata
Più risposte (1)
Image Analyst
il 2 Mar 2015
0 voti
See my attached polyfit demo.

Categorie
Scopri di più su Linear and Nonlinear Regression 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!