Can I open .mlx in a GUI

5 ビュー (過去 30 日間)
Baha411
Baha411 2019 年 5 月 13 日
回答済み: Walter Roberson 2019 年 5 月 13 日
Hi! I wonder if there is a way to open a .mlx file in GUI and visualize it on a panel?

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 5 月 13 日
The Live Editor code and text display area appears to be a java canvas.
When you use figure() inside of a live script, it is the same figure() as for traditional GUI. The main difference is that inside Live Script, NodeChildren is populated with a matlab.graphics.primitive.canvas.JavaCanvas instead of a matlab.ui.container.Container . It is possible to create a figure in Live Script and then to move its children to a different traditional figure created outside of Live Script -- but that is just the graphics content, not the live script and latex and so on. To get those things inside a GUI panel, you would have to find a way to get at the java canvas that holds them and somehow parent the canvas inside a figure.
I would not say that it is impossible, but there is no provided way to do it.

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by