Trendline Display and Linear regression
46 ビュー (過去 30 日間)
古いコメントを表示
Hello, I have a figure with 3 scatterplots and I wanted to add a trendline and the equation on each scatterplot. I've tries using the Tools>Basic Fitting fuction and it works but just for one graphs and when I try to do the same for the next graph, the trendline disappears from the initial graph. Also is there a way to add R^2 values? Here is a picture os my figure.
Thank you

0 件のコメント
回答 (1 件)
Kiran Felix Robert
2021 年 2 月 5 日
Hi Sandra,
Refer to this answers below to enable trendline or fitting lines to a scatter plot from script or command-line.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Discrete Data Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!