Open a .fig GUI from a .m

3 次查看(过去 30 天)
Gustavo Santi
Gustavo Santi 2018-12-12
Hi,
I have a .m file from the GUI I'm working on, but I don't have the .fig to modify the GUI. Is there any way to create a .fig from that .m?
Thanks in advance.

回答(1 个)

Cris LaPierre
Cris LaPierre 2018-12-14
编辑:Cris LaPierre 2018-12-14
I think it could be done, but nothing would be done automatically. You'd have to manually build a new fig file. Use the m-file to give the controls you add the same tag name as is used in their create/callback functions.
You'd have no way of knowing of any initial values that were present in the original fig file. nor what strings or values were prepulated in popup menus, listboxes, etc. Basically anything that was set in the fig file that does not appear in the .m file.
If you are familiar enough with what the gui did, you could probably recreate it.

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by