# Plot arrow as upper limits in errorbar when I don't have lower bound

21 views (last 30 days)

Show older comments

Roberto Serafinelli
on 22 Nov 2022

Answered: Roberto Serafinelli
on 23 Nov 2022

Hi,

I am dealing with a variable that is strictly positive, and for which the calculation sometimes give values of the errors that are larger than the value itself. For example "1+-3" cannot be reported like that but must be reported as "<4".

I also cannot plot them as regular errorbars. Sometimes in plots you see these type of data points as arrows pointing downwards, and I was asking if it is possible to do that in Matlab.

For example in the following code I want an arrow at point (56,11) pointing downwards. How do I do this?

y=[1 2 3 4];

x=[15 1 34 56]

ey=[0.1 0.2 0.3 7];

test1=find(ex>x);

y_upper=x(test1)+ex(test1);

x_upper=y(test1);

### Accepted Answer

### More Answers (1)

Jeffrey Clark
on 23 Nov 2022

##### 0 Comments

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!