필터 지우기
필터 지우기

How to remove values from the top x-axis?

조회 수: 5 (최근 30일)
Udit Srivastava
Udit Srivastava 2017년 6월 11일
댓글: Star Strider 2017년 6월 11일
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
Udit Srivastava
Udit Srivastava 2017년 6월 11일
Sir, why am I seeing these values?
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