About the Number property of figure function

11 次查看(过去 30 天)
How to set the Number property of figure function of 2015B? Each time I set like this: figure('Position', [9 39 900 300], 'Number', 3, 'Name', 'Velocity'); It was wrong but I saw the example just did like this! Thanks1

采纳的回答

Adam
Adam 2016-7-21
'Number' is a read-only property.
You can call:
hFig = figure( 3 ); set( hFig, 'Position', [9 39 900 300], 'Name', 'Velocity');
though beware that the instruction:
figure(3)
will either create a new figure or, if a figure 3 already exists it will simply bring this existing figure into focus and then act upon that.
  1 个评论
wenlong
wenlong 2016-7-28
Thanks, Adam, I got it! I thought the original source codes confused the Number and NumberTitle

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by