plot un-equally spaced data in errorbar
Mostra commenti meno recenti
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)
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Errorbars in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!