Error plot Bar graph
12 次查看(过去 30 天)
显示 更早的评论
Guilherme Lopes de Campos
2019-2-19
评论: Guilherme Lopes de Campos
2019-3-24
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 个评论
采纳的回答
Sajeer Modavan
2019-3-20
for using bar function you have to give M-by-N matrix
X = randi([1 100],27,2);
bar(X)
2 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!