Error using errorbar>checkSingleInput (line 264) XData must be the same size as YData. I'm trying to create error bars for the following points in x an y.
조회 수: 4 (최근 30일)
이전 댓글 표시
ChAn=Metalresistance(1:764,2);
ChBn=Metalresistance(1:764,3);
ChAm=electricconductivitymetal(1:47,2);
ChBm=electricconductivitymetal(1:47,3);
sA=std(ChAn);
sB=std(ChBn);
errorx=sB;
errory=sA;
errorbar(ChBm,ChAn,errory,errorx,'o')
댓글 수: 0
답변 (1개)
Srivardhan Gadila
2021년 3월 22일
As per the syntax errorbar(x,y,neg,pos), the size of x and y should be same but in the above code ChBm and ChAn have different sizes.Check the explanation of Input Arguments of errorbar for more information.
댓글 수: 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!