How to remove values from the top x-axis?

5 次查看(过去 30 天)
Hey all,
Any idea about why am I getting values written on top axis and how to remove it?
Thanks.

采纳的回答

Star Strider
Star Strider 2017-6-11
Use an empty string for the title argument:
f = @(x) x.^2 - 10*x;
figure(1)
ezplot(f, [-2 2])
grid
title('')
  4 个评论
Star Strider
Star Strider 2017-6-11
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Identification 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by