How to copy GUI's figure and m-file and rename that to use another version?

17 visualizaciones (últimos 30 días)
First of all i made 'A' GUI to simulate. And I want to make another GUI version like from v1 to v2. So my choice is copy A and rename it B. When i was running m-file B, GUI figure B is appeared but it is connected A. I modified some source code on m-file B, but GUI's result is A's result. So i try to find my mistake so searching some keyword like copy, gui, rename on google. But I cant found what is my fault. So i want to know to how to connect GUI figure and m-file after copying.
  1 comentario
Debashis Panda
Debashis Panda el 30 de Dic. de 2016
Hey dear,if you have created the GUI by using GUIDE,then copy the open the .fig file (by right clicking and open as GUIDE)change according to your requirement and go to file change name to B and run it. try it , wish u all the best

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 30 de Dic. de 2016
No, that is not the way to do it, though it might seem like it. Believe me, I do this all the time.
What you want to do is to open your GUIA, then from the pulldown menu, do "File->Save as" and rename it to GUIB. This will make a copy the proper way. The beauty of it is that it doesn't just make a copy of GUIA.fig called GUIB.fig, it will also take GUIA.m and make all the numerous changes that need to be made and automatically save it as GUIB.m
Now you can start making edits to GUIB.m.
Try it and you'll see it works. Like I said, I do this all the time.
  10 comentarios
Walter Roberson
Walter Roberson el 28 de Oct. de 2018
The below shows the File Menu in GUIDE. Notice the "Save As..." choice.
Bachtiar Muhammad Lubis
Bachtiar Muhammad Lubis el 29 de Oct. de 2018
Editada: Bachtiar Muhammad Lubis el 29 de Oct. de 2018
To Image Analyst. Actually you have answered my question, which is your accepted answer by Ki Beom Son. I already opened my GUI yesterday but there weren't anything dropdown menus there until i restart my laptop and the dropdown menus show up. Now i can save the GUI with different name. Thanks a lot Image Analyst !

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by