Turn off plot confidence bounds
조회 수: 18 (최근 30일)
이전 댓글 표시
I am trying to plot a simple linear regression over a plot of sea level. I only want trend line but I cannot turn off the confidence bounds on the plot. Any tips?
subplot(3,1,1) plot(SL(503,:),time(1,:)); hold on p = plot(fitlm(SL(503,:), time(1,:))) title(names(503)) xlabel('Sealevel') ylabel('Year')
댓글 수: 0
답변 (1개)
Naman Chaturvedi
2018년 9월 19일
The plot p shows the data, the fit and the confidence handle. The visibility of the confidence bounds lines can be set to 'off' by the following commands:
>> p(end-1,1).Visible='off';
>> p(end,1).Visible='off'
참고 항목
카테고리
Help Center 및 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!