Trendline Display and Linear regression
조회 수: 38 (최근 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!