need help creating standalone gui using m-file (no fig file, not using GUIDE)

조회 수: 2 (최근 30일)
Jude Kastens
Jude Kastens 2011년 2월 24일
Hello--
I created a GUI in editor (not GUIDE) using just an m-file (no fig file). I then used deploytool to build & package (no problems with this).
Everything installs fine (including MCR) on a non-MATLAB PC, but upon running the GUI EXE, the EXE appears briefly in the task manager process list and then quickly disappears, and the GUI does not appear at all. Also, a beep can be heard, suggesting an error and not just a successful (but really fast) open & close.
Is there some protocol I need to follow when trying to create a Windows standalone GUI in this manner (i.e., not using GUIDE & no fig file)? Do I need to initialize the m-file (and/or any created figures) in some particualr way?
Using R2010a, Windows XP, & Windows 7 (all 64-bit).
Thanks in advance for any advice/suggestions.
Jude
  댓글 수: 4
Jude Kastens
Jude Kastens 2011년 2월 24일
Thanks much, Paulo!
Instead of replacing the figure handle, I simply initialized h ("h = struct;"), and the standalone seems to work now.
Jude

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

답변 (1개)

Wendy Fullam
Wendy Fullam 2012년 9월 24일
Paulo answered in comments:
try fldplnfig instead of h.fldplnfig in the figure handle

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by