Info
This question is closed. Reopen it to edit or answer.
How can I import error values to my scatter graph?
1 view (last 30 days)
Show older comments
I have plotted a scatter graph on R2014a and need to plot errors bars onto the graph. I have the values of each individual error bar but cannot add it to my graph as the errorbar function says they all have to be the same length, which they are not. The x, y, and error bars values have been inputted as three separate matrices, named x, y, z. Thanks.
0 Comments
Answers (1)
the cyclist
on 29 Jul 2014
Edited: the cyclist
on 29 Jul 2014
I think you've misread the errorbar documentation. There is a syntax in which you can enter a vector of upper and lower error bar values.
For example,
errorbar(1:3,2:4,[0.1 0.1 0.2],[0.1 0.3 0.3],'.-')
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!