Turn off plot confidence bounds

18 ビュー (過去 30 日間)
Alex Leich
Alex Leich 2018 年 9 月 16 日
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')

回答 (1 件)

Naman Chaturvedi
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'
  1 件のコメント
Ranjith Madhana Gopal
Ranjith Madhana Gopal 2022 年 5 月 6 日
Thanks! That's awesome!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by