how can i run exe file

5 ビュー (過去 30 日間)
isra sahli
isra sahli 2021 年 12 月 22 日
コメント済み: isra sahli 2021 年 12 月 28 日
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 件のコメント
Geoff Hayes
Geoff Hayes 2021 年 12 月 28 日
@isra sahli unfortunately, I'm not familiar enough with simulink to know if that function is correct.
isra sahli
isra sahli 2021 年 12 月 28 日
@Geoff Hayes Thank you.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeJust for fun についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by