how to fit a trend line in plotyy ?
이전 댓글 표시
% 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
채택된 답변
추가 답변 (1개)
Image Analyst
2015년 3월 2일
0 개 추천
See my attached polyfit demo.

카테고리
도움말 센터 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!