Publish with no output to screen

5 次查看(过去 30 天)
Hi all.
I'm using publish to create a number of figures by a loop. When i do this the figures pop up on screen and I don't want that. I haven't been able to find out how to turn this off. Can someone help?
Thanks

采纳的回答

Walter Roberson
Walter Roberson 2011-5-26
I don't know if this will work, but you could try
set(0,'DefaultFigureVisibility','off')
Any figure created after that (in the session) should, in theory, need to be explicitly set to Visibility on in order to display on the screen.
  3 个评论
Walter Roberson
Walter Roberson 2011-5-26
Sorry, that should have been
set(0,'DefaultFigureVisible','off')
Mads
Mads 2011-5-26
Thank you, works great.

请先登录,再进行评论。

更多回答(1 个)

Mads
Mads 2011-5-26
Hi again. It turns out that this options setting also means that publish does not create the pictures. Do you have another suggestion?
Thanks.
  1 个评论
Walter Roberson
Walter Roberson 2011-5-26
Sorry, I do not know how publish works internally.
The circumstances under which the "print" command can work without a display are described in the documentation for "print". I do not know, though, if it is "print" that is used by publish.

请先登录,再进行评论。

类别

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