error bar from xlsx
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Abdullah Al Alhareth
le 7 Oct 2019
Commenté : Walter Roberson
le 7 Oct 2019
Hello
I have data from excel and I imported and everything going fine except error bar doesn't work
I have an error bar in column 3, this is the first time I use it.
Thank you in advance.
A=importdata('value.xlsx')
x=A.data(:,2)
b=A.data(:,1)
err=A.date(:,3)
S1=plot(x,b,err,'sk','MarkerFaceColor','k')
error(x,b,err)
0 commentaires
Réponse acceptée
Walter Roberson
le 7 Oct 2019
The function to plot error bars is errorbar() not error()
13 commentaires
Walter Roberson
le 7 Oct 2019
filename = 'value.xlsx';
A = importdata('value.xlsx');
x = A.data(:,2);
b = A.data(:,1);
err = A.data(:,3);
plot(x, b, 'sk', 'MarkerFaceColor', 'k')
errorbar(x, b, err)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Errorbars dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!