필터 지우기
필터 지우기

How to plot bars from a data point to a curve in a figure, to calculate error.

조회 수: 2 (최근 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.

채택된 답변

the cyclist
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
  댓글 수: 1
Guillermo Lopez
Guillermo Lopez 2012년 6월 4일
You are right, it is very broad. I will try giving a read to the documents you said and try to explain myself a bit clearer. Thanks anyway.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Bar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by