Filter löschen
Filter löschen

How to plot with ticks but without figures

2 Ansichten (letzte 30 Tage)
Konstantin Shchukin
Konstantin Shchukin am 29 Sep. 2023
Beantwortet: Dyuman Joshi am 29 Sep. 2023
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?

Antworten (1)

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

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by