Borrar filtros
Borrar filtros

Initialising Graphs from Live Script

1 visualización (últimos 30 días)
John Doe
John Doe el 3 de Jul. de 2019
Comentada: Heather Lai el 18 de Feb. de 2021
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 comentarios
James Owen
James Owen el 3 de Mzo. de 2020
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 el 18 de Feb. de 2021
Thank you, this is very helpful!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by