how to fit a trend line in plotyy ?
Ältere Kommentare anzeigen
% 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
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 2 Mär. 2015
0 Stimmen
See my attached polyfit demo.

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!