why in xticklabel not all x-axis label appear?

조회 수: 8 (최근 30일)
Mohammad Al Nagdawi
Mohammad Al Nagdawi 2017년 12월 16일
답변: Mohammad Al Nagdawi 2017년 12월 17일
figure;
bar(sum(SM_MI)/length(SM_MI),'FaceColor', [0 0 0.6]);
hold on
bar(2,sum(SM_JD)/length(SM_JD),'FaceColor', [0 .6 .6]);
bar(3,sum(SM_JD_seg)/length(SM_MI),'y');
set(gca,'xticklabel',{'MI','J-div','j-div seg'});
barvalues(gca,'%.2f');
ylabel('Success rate')

채택된 답변

Mohammad Al Nagdawi
Mohammad Al Nagdawi 2017년 12월 17일
I find the answer:
set(gca,'XTick',[1,2,3],'xticklabel',{'MI','J-div','j-div seg'});
with help of Star Strider

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by