Sometimes it is handy to calculate tick-aligned axis limits of one or more datasets separately (i.e. not only let Matlab determine the limits while generating the chart) to get custom, but still automatically computed tick-aligned axis limits.
axlim = ticklimits(y)
will mostly reproduce the limits of a standard 2d chart generated by Matlab.
[axlim, ticklen, ybase] = ticklimits(y, maxticks, Name=Value)
offers several customization options for tick-aligned axis limits.
Zitieren als
Andres (2025). ticklimits (https://www.mathworks.com/matlabcentral/fileexchange/156547-ticklimits), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2023b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
ticklimits
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.1 | revised html |
|
|
1.0.0 |
|