Initialising Graphs from Live Script

Is there a method for initializing the plot window in a live script?
Current I initialise a figure in the cmd window like so:
figure(1)
The from my live script plot
figure(1)
plot(someData)
This will plot someData in the figure window rather than live script output, great, but it's a bit clunky and kind of irritating to do everytime I hit run.

댓글 수: 3

John Doe
John Doe 2019년 7월 8일
편집: John Doe 2019년 10월 10일
I asked this a while ago.
Any staff able to help with this?
James Owen
James Owen 2020년 3월 3일
You can get the figure to pop-out of the Live Editor in its own window by setting its "Visibible" property to 'on'. For example:
plot(1:10)
set(gcf,'Visible','on')
Heather Lai
Heather Lai 2021년 2월 18일
Thank you, this is very helpful!

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Graphics Objects에 대해 자세히 알아보기

태그

질문:

2019년 7월 3일

댓글:

2021년 2월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by