RUNDLG fnamem = 'mccrdepend.m'; rundlg('setlinw') rundlg('setlinw.m') Replacement of RUN function Includes function's input/output parameters rundlg mainvsr Allowable limit of total nargin is 15, to avoid crash of MATLAB if nargin > 1, the excuted command will be displayed in command window if success, or in a gui in case of error Pressing cancel in the inputdlgr box, function will run without any nargin if the value is empty in the inputdlg, it will look in the worspace, otherwise empty value assumed if all nargin are empty, it will run the function without any nargin Rezaul, 2004