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!