How to plot with ticks but without figures

4 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Grid 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