errorbar for x and y

조회 수: 2 (최근 30일)
esil kara
esil kara 2020년 12월 16일
댓글: esil kara 2020년 12월 17일
hello,
I could not add errorbars in both direction. I tried copying the code below to the program as is but it also not work on my Matlab
x = 1:10:100;
y = [20 30 45 40 60 65 80 75 95 90];
yneg = [1 3 5 3 5 3 6 4 3 3];
ypos = [2 5 3 5 2 5 2 2 5 5];
xneg = [1 3 5 3 5 3 6 4 3 3];
xpos = [2 5 3 5 2 5 2 2 5 5];
errorbar(x,y,yneg,ypos,xneg,xpos,'o')
the program gives the 'too many input arguments' error note

채택된 답변

the cyclist
the cyclist 2020년 12월 16일
This code works for me. What version of MATLAB are you running?
If you have an older version, and cannot update, then you could instead use a submission from the File Exchange, such as this one.
  댓글 수: 1
esil kara
esil kara 2020년 12월 17일
I have older version, 2015a. You are right thats the problem. Thank you for the answer, I will try the File Exchange

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by