How to plot bars from a data point to a curve in a figure, to calculate error.
1 view (last 30 days)
Show older comments
Hello. My question is as follows: Is it possible if I have some data points in a figure and a curve (with the real values), to calculate the difference between the two and plot it as an error bar? Say for example I have a point calculated by me at a random value; 3, and then the actual curve says that my value should be a 6 and not a 3. So the error between the two would be 50%. Maybe on the next point there is a difference of 50% but the point is higher up instead of below my theory curve. Is is possible to get a bar between the point and the curve with the actual value written somewhere above? I hope you understood my question. Thanks for the help in advance.
0 Comments
Accepted Answer
the cyclist
on 4 Jun 2012
Your question is very broad, and you don't give any hints of what you do know how to do. (For example, do you know how to make a simple plot?) So, I can only give you some very broad advice, which is to read the following help files, all of which relate to the questions you have asked:
>> doc plot
>> doc line
>> doc errorbar
>> doc text
More Answers (0)
See Also
Categories
Find more on Errorbars in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!