www.gusucode.com > vnt工具箱matlab源码程序 > vnt/vntblks/vntmasks/private/privatecanslfilename.m
function privatecanslfilename(dialog) %PRIVATECANSLFILENAME Apply the selected filename after validation. % % PRIVATECANSLFILENAME (DIALOG) Apply the selected filename after % validation. % SS 03-01-11 % Copyright 2011 The MathWorks, Inc. % Get the dialog source. obj = dialog.getDialogSource; fullPathFilename = obj.Block.FullPathFilename; [~, ~, extn] = fileparts(fullPathFilename); if isempty(extn) fullPathFilename = strcat(fullPathFilename, '.mat'); end obj.Block.FullPathFilename = fullPathFilename; obj.FullPathFilename = obj.Block.FullPathFilename;