Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7c007a8137
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.389 kb
function cwarndlg(string, dlgname, id, mode)
%if we only want this done once, check if we have done this yet
if strcmp(mode,'once'),
state = warning('query', id);
if strcmp(state.state, 'off'), %have warned already so exit
return;
else %have not warned yet
warning('off', id); %turn off for future
end
end
warndlg(string, dlgname);
Jump to Line
Something went wrong with that request. Please try again.