How to plot with ticks but without figures

3 ビュー (過去 30 日間)
Konstantin Shchukin
Konstantin Shchukin 2023 年 9 月 29 日
回答済み: Dyuman Joshi 2023 年 9 月 29 日
I would like to plot arbitary units, that's why I would like to keep ticks indicated, but remove numbers near them. How can I realise it?

採用された回答

Dyuman Joshi
Dyuman Joshi 2023 年 9 月 29 日
Remove the tick labels -
%Example
%Plot
fplot(@(x) sin(x), [-5 5])
%Adjust ticks
xticks(-5:0.5:5)
%Remove the tick labels
xticklabels([])

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by