Error plot Bar graph
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Guilherme Lopes de Campos
am 19 Feb. 2019
Kommentiert: Guilherme Lopes de Campos
am 24 Mär. 2019
Hi MATLAB community,
I am trying create a bar graph, but show the follows error message:
X = table2array(valoresextremos); % size matriz (27,2)
x = X(:,1); 27 lines
y = X(:,2); 27 lines
bar(x,y)
Error using bar (line 191)
XData values must be unique.
Error in valores_extremos_grafico (line 4)
bar(x,y)
Could help me ?
Thank
Guilherme
0 Kommentare
Akzeptierte Antwort
Sajeer Modavan
am 20 Mär. 2019
for using bar function you have to give M-by-N matrix
X = randi([1 100],27,2);
bar(X)
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!