Add Specific Numbers to x-axis
29 ビュー (過去 30 日間)
古いコメントを表示
Hello
I would like to add/show specific numbers in x-axis.Like numbers I showed here 52 and last number 142.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/533759/image.jpeg)
0 件のコメント
採用された回答
Cris LaPierre
2021 年 2 月 27 日
x=0:142;
y=linspace(0.1, 2.7,length(x));
bar(x,y)
xline(52,'m--')
xticks(sort([xticks 52 142]));
4 件のコメント
Cris LaPierre
2021 年 2 月 27 日
Which zeros do you want removed?
You could either
- delete or rename the tick label
- delete or move the tick
- change you axis limits to not include 0
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!