how do I change linewidth of line of best fit and of the confidence limits, when using 'predobs'

4 views (last 30 days)
how do I change linewidth of line of best fit and of the confidence limits, when using 'predobs' See code below plot(cfTestBEFORENoOutliers,'r-',XTestBEFORE,YTestBEFORE,'o',outliersTestBEFORE,'r*','predobs'), hold on
  1 Comment
Satyajeet Sasmal
Satyajeet Sasmal on 19 Nov 2015
You could use a handle to the plot function.
h = plot(cfTestBEFORENoOutliers,'r-',XTestBEFORE,YTestBEFORE,'o',outliersTestBEFORE,'r*','predobs');
h.LineWidth = 8;

Sign in to comment.

Answers (2)

William Truong
William Truong on 28 May 2019
Edited: William Truong on 28 May 2019
Use:
h = plot(cfTestBEFORENoOutliers,'r-',XTestBEFORE,YTestBEFORE,'o',outliersTestBEFORE,'r*','predobs');
set(h,'LineWidth',8)

Cagatay Demirci
Cagatay Demirci on 12 Oct 2016
doesn't work!

Categories

Find more on Curve Fitting Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!