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.
19 ビュー (過去 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!