ourMELONS/matlab/general/fixKWarning.m
2019-12-16 16:47:21 +01:00

14 lines
No EOL
475 B
Matlab

%-------------------------------------------------------------------------
function fixedK = fixKWarning()
% The function is to ask further confirmation of running fixed K clustering
button = questdlg('You have selected a clustering analysis with the Fixed-K Mode. Are you sure to continue?',...
'Fixed-K Mode');
switch button
case 'Yes'
fixedK = 1;
case 'No'
fixedK = 0;
goToFixedK
case 'Cancel'
fixedK = 0.5;
end