How can i set middle tick?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gabriel Maia
am 17 Aug. 2018
Bearbeitet: Gabriel Maia
am 17 Aug. 2018
I want to set a graph with middle tics without number, like the picture. Also i need to enable sides ticks. How can i do it?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/194008/image.png)
0 Kommentare
Akzeptierte Antwort
Adam Danz
am 17 Aug. 2018
Bearbeitet: Adam Danz
am 17 Aug. 2018
To turn on 'minor' ticks:
set(gca,'XMinorTick','on')
What's a side tick? Check out all the properties of ticks you can set:
6 Kommentare
Adam Danz
am 17 Aug. 2018
I see the problem. You don't need to create another axis. You only need the axis handle of your current axis.
replace
hA = axes
with
hA = gca;
unless you already have your current axis handle available.
Also your minor ticks should be
-7.5 : 2 : 7.5
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!