plot un-equally spaced data in errorbar
显示 更早的评论
Hello.
I'm trying to plot unequally spaced data in error bar plot with vertical error bar. My script looks something like this: But my xtick value is repeated as shown below. What am i doing wrong? I just want the x axis from 28-->224 and not the extra marker after it. 

x1 = [28 56 112 224];
xt = 1:length(x1);
y1 = [21.2 18.01 16.8 14.38];
sd_vct1 = [4.93 1.77 1.81 2.32];
figure(1)
errorbar(xt,y1,sd_vct1,'-ob')
set(gca, 'XTickLabel',x1)
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Errorbars 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!