How to remove values from the top x-axis?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Udit Srivastava
am 11 Jun. 2017
Kommentiert: Star Strider
am 11 Jun. 2017
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/165067/image.jpeg)
Hey all,
Any idea about why am I getting values written on top axis and how to remove it?
Thanks.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 11 Jun. 2017
Use an empty string for the title argument:
f = @(x) x.^2 - 10*x;
figure(1)
ezplot(f, [-2 2])
grid
title('')
4 Kommentare
Star Strider
am 11 Jun. 2017
If by ‘these values’ you intend the equation you are plotting in the title, that is simply the default behaviour of ezplot. In the fplot function, the default is not to print the title.
Consider experimenting with fplot (introduced before R2006a), especially since ezplot is being deprecated.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Object Identification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!