how can i run exe file

5 visualizaciones (últimos 30 días)
isra sahli
isra sahli el 22 de Dic. de 2021
Comentada: isra sahli el 28 de Dic. de 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 comentarios
Geoff Hayes
Geoff Hayes el 28 de Dic. de 2021
@isra sahli unfortunately, I'm not familiar enough with simulink to know if that function is correct.
isra sahli
isra sahli el 28 de Dic. de 2021
@Geoff Hayes Thank you.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Just for fun en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by