How to plot bars from a data point to a curve in a figure, to calculate error.
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
the cyclist
2012-6-4
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Errorbars 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!