Question about migrating guide to appdesigner
9 views (last 30 days)
Show older comments
I have used GUIDE for decades, and now finally need to convert. Most of the GUIDE apps I write have several .fig files. The "Strategies" tutorial doesn't (to my knowledge) explicitly tell how to connect these.
Thoughts?
0 Comments
Accepted Answer
dpb
about 6 hours ago
Edited: dpb
about 6 hours ago
See <appmigration.migrateGUIDEApp> on converting all .fig files in a folder at once. Beginning with R2023b
"When you use the appmigration.migrateGUIDEApp function to migrate multiple apps at once, the function updates app references. For example, to migrate a main app that opens a secondary app from GUIDE to App Designer, use the appmigration.migrateGUIDEApp function to migrate the main and secondary apps using a single command. The function replaces all references to the apps that you migrate together. Therefore, your migrated main app opens the migrated secondary app without any manual changes to your app code."
There will still be a lot of handwork left, but it should be a starting point.
2 Comments
dpb
about 1 hour ago
Unfortunately, no. That falls under the aforementioned category of "lots left to do"; the tool knows nothing about aesthetics other than to simply try to put the same type of control in place and generate its callback interfaces.
Beyond that, one will have to manually change the features of each control in the appdesigner design tool.
The alternative with appdesigner itself would be to write "fixup" code in the startup function that adjusts the parameters of the UI components programmatically which would add to the startup overhead.
The other alternative would be to build the app totally programmatically but using the base structure of the uifgure app instead of the GUIDe style. I've not built any complex UI apps so I don't have any in-depth specifics to offer.
More Answers (0)
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!