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

 채택된 답변

Sajeer Modavan
Sajeer Modavan 2019년 3월 20일

0 개 추천

for using bar function you have to give M-by-N matrix
X = randi([1 100],27,2);
bar(X)

댓글 수: 2

Sajeer Modavan
Sajeer Modavan 2019년 3월 24일
did you able to solve it
Guilherme Lopes de Campos
Guilherme Lopes de Campos 2019년 3월 24일
Hi Mohamed,
It worked,
Thank you very much for help,
My apologies for late to answer,
Guilherme Lopes de Campos

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

릴리스

R2018b

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by