Setting Axis scale steps
Ältere Kommentare anzeigen
Hello guys,
I'am new to Matlab and need your help
how can i set the axis such that every step is for example '8.03 units'?
thanks
1 Kommentar
Shawn
am 5 Nov. 2025
To set the axis ticks with a specific step size like 8.03 units, you can use the xticks (or yticks) function. Here’s a quick example for the x-axis:
x_min = 0; % starting value of the axis
x_max =
100; % ending value of the axis (adjust as needed)
step =
8.03; % your desired step size
xticks(x_min:step:x_max);
This will set the ticks at intervals of 8.03 units along the x-axis. You can do the same for the y-axis with yticks. @mr flip
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Axis Labels finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
