how can i run exe file

3 views (last 30 days)
isra sahli
isra sahli on 22 Dec 2021
Commented: isra sahli on 28 Dec 2021
I want to run exe file named mcml, this file require two files
the first is tissue.mci
the second is illcol_setup.txt
i used this Gui and this function
function simulink_Callback(hObject, eventdata, handles)
illcolsetup=handles.illcolsetup_file_name
tissue=handles.tissue_file_name
system ('"mcml.exe" tissue illcolsetup')
function choose_tissue_file_Callback(hObject, eventdata, handles)
[tissuefilename pathname] = uigetfile({'*.mci'},'File Selector')
handles.tissue_file_name=tissuefilename
function choose_illcol_setup_Callback(hObject, eventdata, handles)
[illcolsetupfilename pathname] = uigetfile({'*.txt'},'File Selector')
handles.illcolsetup_file_name=illcolsetupfilename
but i have this problem:
Reference to non-existent field 'illcolsetup_file_name'.
Error in Tissue_properties>simulink_Callback (line 345)
illcolsetup=handles.illcolsetup_file_name
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in Tissue_properties (line 17)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)Tissue_properties('simulink_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
how can i solve this problem and run exe file correctly
  4 Comments

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!