Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

customised x data clustered around 0 axis in matlab plot

조회 수: 1 (최근 30일)
Tino
Tino 2019년 5월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi
Can anyone help me solve this issuse
labels = [0 2000 4000 6000 8000 10000 12000];
disp(plot(X));
set(gca, 'XTick', 1:numel(labels));%this puts the labels at x=1,2,3,4,5,6,7
set(gca, 'XTickLabel', cellfun(@num2str,num2cell(labels), 'UniformOutput', false);
The numbers are clustered around the zero axis. How do I solve this
Thanks
Tino

답변 (0개)

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by