MATLAB Answers

plotting plus minus 10% variation of a vector in matlab

2 views (last 30 days)
Sumera Yamin
Sumera Yamin on 10 Nov 2020
Commented: Sumera Yamin on 10 Nov 2020
Hi, I need some help with plotting. I have plotted two vectors A and B. Now I want to introduce a variation in vector A (10% variation dependent on some function, for simplicity, let's suppose linear), and plot on top of A as a shaded (continuous) error bar . How can I do such a plot in Matlab? (Something like attached picture, red line is actual data and blue is the variation in data). Many thanks for the help.
  2 Comments
Sumera Yamin
Sumera Yamin on 10 Nov 2020
many thanks for pointing out this function. This is exactly what i was looking for.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!