how to fit a trend line in plotyy ?
Mostrar comentarios más antiguos
% 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
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 2 de Mzo. de 2015
0 votos
See my attached polyfit demo.

Categorías
Más información sobre Linear and Nonlinear Regression en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!