Borrar filtros
Borrar filtros

How to remove values from the top x-axis?

5 visualizaciones (últimos 30 días)
Udit Srivastava
Udit Srivastava el 11 de Jun. de 2017
Comentada: Star Strider el 11 de Jun. de 2017
Hey all,
Any idea about why am I getting values written on top axis and how to remove it?
Thanks.

Respuesta aceptada

Star Strider
Star Strider el 11 de Jun. de 2017
Use an empty string for the title argument:
f = @(x) x.^2 - 10*x;
figure(1)
ezplot(f, [-2 2])
grid
title('')
  4 comentarios
Udit Srivastava
Udit Srivastava el 11 de Jun. de 2017
Sir, why am I seeing these values?
Star Strider
Star Strider el 11 de Jun. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Object Identification en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by