Is there a migration path from gui's made in guide to programmatic gui's?
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm getting tired of GUIDE bogging down. Is there a way to convert my .fig file to a programmatic GUI (other than manually)? Or some way to help me do it manually like get a listing of the controls and their positions or something.
댓글 수: 1
Gouater Loic
2019년 6월 29일
I recently wrote a code which does just that. Check the youtube video explanation at https://www.youtube.com/watch?v=1CFl3ItzFeE&t=40s&pbjreload=10 and from the video's description you could get the code
채택된 답변
Jan
2013년 2월 6일
편집: Jan
2013년 2월 6일
Searching in the FileExchange is a good idea:
- http://www.mathworks.com/matlabcentral/fileexchange/14340-convert-fig-to-matlab-code
- http://www.mathworks.com/matlabcentral/fileexchange/20152-guidegetter
FIG files are MAT-files actually. So using LOAD to get them and http://www.mathworks.com/matlabcentral/fileexchange/24447-generate-m-file-code-for-any-matlab-variable could be working also, but I have not tried it.
추가 답변 (2개)
Sean de Wolski
2013년 2월 6일
You can export a GUIDE GUI to a single file from within GUIDE. From here it would be easier to deGUIDEify the various callbacks and turn everything into subfunctions/nested functions.
Frankly though, it can be really difficult to successfully modify the architecture of GUIDE GUIs. I would just recommend starting over with OOP or regular programmatic guis.
Especially with OOP, it's very straightforward to get your feet wet and have functional GUIs really quickly.
Also worthy of mentioning:
Gouater Loic
2019년 6월 29일
I recently wrote a code which does just that. Check the youtube video explanation at https://www.youtube.com/watch?v=1CFl3ItzFeE&t=40s&pbjreload=10 and from the video's description you could get the code
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!