Duplicating a GUIDE created GUI to a new name and new folder
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jason
am 9 Jun. 2019
Bearbeitet: Walter Roberson
am 9 Jun. 2019
Hello, I have a matlab GUI created in guide (so have myProgram1.m and myProgram1.fig) in a certain directory.
I would like to copy this to a new name (i.e. myProgram2.m and myProgram2.fig) and place in a new directory and have no link to the previous one.
What is the suggested way to do this
Thanks
Jason
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 9 Jun. 2019
The suggested way is to open myProgram1 in GUIDE, and tell GUIDE to Save As to the new location.
Do not just copy and rename: the .m and .fig for myProgram1 contain references to myProgram1 . You could edit the source myProgram2 to change the references there, but that would not change the .fig file.
2 Kommentare
Walter Roberson
am 9 Jun. 2019
Bearbeitet: Walter Roberson
am 9 Jun. 2019
Yes, except you need to take the special care for myProgram1 vs myProgram2 itself as described above.
... And assuming that none of the code has hard-coded names of files to run()
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!