How can I insert a uifigure in my livescript code?
Ältere Kommentare anzeigen
Hi guys, I d' like to insert a uifigure in my livescript as in the following image:

The problem is that when I run the code, the uifigure appears in a separate window but I want it inside a box within my livescript.
The image is taken by an example livescript that is given by the mapping toolbox:
Can you help me, pleae
6 Kommentare
Adam Danz
am 11 Jun. 2021
I don't think you can embed a figure produced by uifigure in a live script. Unless that has been changed recently, you'll have to use a figure produced by figure().
Giuseppe
am 11 Jun. 2021
Take a second look and notice the following 2 observations.
- When you run the live script, what happens?
- The figures that follow sections of code that use uifigure are actually images (screen shots of the figure), not embedded figures produced by the live script. You can hit the "clear all output" button to clear all internally produced figures and you'll see that the ones following blocks of code that use uifigure remain.
Giuseppe
am 12 Jun. 2021
Walter Roberson
am 12 Jun. 2021
And the separated figure can be uifigure(), but you cannot get one in line with Live script.
Adam Danz
am 12 Jun. 2021
GIFs are image files but I could have been clearer. If you look at other figures in that demo created by uifigure, they are all inserted as images (example below).
The creators of that demo could have been clearer that they were inserting images.

Akzeptierte Antwort
Weitere Antworten (1)
Giuseppe
am 12 Jun. 2021
0 Stimmen
Kategorien
Mehr zu MATLAB Support Package for IP Cameras finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!