gusucode.com > vnt工具箱matlab源码程序 > vnt/vntblks/vntmasks/private/privatecanslbrowse.m
function privatecanslbrowse(dialog) %PRIVATECANSLBROWSE Opens a file open window to select a MAT file. % % PRIVATECANSLBROWSE (DIALOG, TAG) Opens a file open window to select a % MAT file. % SS 03-01-11 % Copyright 2011 The MathWorks, Inc. % Get the dialog source. obj = dialog.getDialogSource; % Get the widget tags. tags = privatevntslstring('alltags'); % Open the dialog to select the MAT file. [filename, pathname] = uigetfile({'*.mat', 'MAT files(*.mat)'},... 'Select a MAT file', obj.FullPathFileName); % Check if a selection was made. if ~(isequal(filename,0) || isequal(pathname,0)) % Set the value on the block dialog. dialog.setWidgetValue(tags.FullPathFileName, [pathname filename]); obj.FullPathFileName = obj.Block.FullPathFileName; end