How to set specific colors in margin of errorbars line?

1 view (last 30 days)
I use errorbar funtion in order to put errorbars in a plot. I would like to set a different color to the margin of the line.
I use
errorbar(x,y,z,'r-','LineWidth',3)
I would like for example to have red line with black margins..
Could you help me?

Answers (0)

Community Treasure Hunt

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

Start Hunting!