필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Gui

조회 수: 2 (최근 30일)
Ankur Bawiskar
Ankur Bawiskar 2012년 2월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
I have developed matlab gui in which i have 3 buttons..
button 1
button2
button3
on button3 click i have put a code of running a script..it is working fine..
but on button2 i want to run a already existing gui from same folder..
i have put openfig('filename.fig') after % handles the gui is opening but when i am trying to load an image in the gui it is giving error as follows::
??? Attempt to reference field of non-structure array.
Error in ==> reversewatermark>browseim_Callback at 100
axes(handles.axes1);
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> reversewatermark at 42
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback
..
on button1 click i want to run a file for which i does not have .m file because it is encrypted and it is .p file..
please help me in this problem..

답변 (1개)

Sean de Wolski
Sean de Wolski 2012년 2월 10일
You need to run the *.m file associated with the *.fig file. Not the fig file itself. E.g.:
example210.m and example210.fig
You run the fig file by running:
example210
at the command line
  댓글 수: 1
Ankur Bawiskar
Ankur Bawiskar 2012년 2월 11일
thanks..i have done it..

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by