필터 지우기
필터 지우기

How do I get the figure number in MATLAB R2014b?

조회 수: 62 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2014년 10월 7일
댓글: Steven Lord 2017년 8월 16일
How do I get the figure number in MATLAB R2014b?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2014년 10월 7일
Starting in MATLAB R2014b, figure handles are object handles where previously they were integers.  Now to get the associated number for the figure, query the new Number property. For example, this code gets the number for the current figure.
n = get(gcf,'Number')
n =
1
The Number property is the value displayed in the figure title bar.
You can refer to a figure by its integer number. For example, figure(2) makes the figure with a Number property value of 2 the current figure.
  댓글 수: 1
Steven Lord
Steven Lord 2017년 8월 16일
figure handles are object handles where previously they were integers. So in releases prior to R2014b, gcf returns a number not an object. The value 'on' that you receive is the value of the NumberTitle property of the figure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by