필터 지우기
필터 지우기

Duplicating a GUIDE created GUI to a new name and new folder

조회 수: 2 (최근 30일)
Jason
Jason 2019년 6월 9일
편집: Walter Roberson 2019년 6월 9일
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

채택된 답변

Walter Roberson
Walter Roberson 2019년 6월 9일
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
Jason
Jason 2019년 6월 9일
Thanks Walter. So any functions defined in the myProgram1 folder as long as they are copied to the myProgram2 folder will be run from myProgram2 folder?
Jason
Walter Roberson
Walter Roberson 2019년 6월 9일
편집: Walter Roberson 2019년 6월 9일
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()

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by