Initialising Graphs from Live Script

3 ビュー (過去 30 日間)
John Doe
John Doe 2019 年 7 月 3 日
コメント済み: Heather Lai 2021 年 2 月 18 日
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 件のコメント
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 件)

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by