|
"machatsk " <chatskom@chemimage.com> wrote in message <i40tr8$3js$1@fred.mathworks.com>...
> Hello all,
> I have a GUI with 3 checkboxes that represent data types for chemical analysis. The GUI plots spectral data based upon the user selection. So 3 graphs maximum, 1 graph minimum. Before plotting the data, the program checks certain tags to see if the data on file is not up to the standards determined on site. The user is warned and can continue with processing the data or skip that data type. I used a questdlg() that has 2 buttons 'yes' and 'no'.
> The program runs in order FCI, RCI, SWIR. So if a user selects FCI and SWIR for instance, gets a warning for FCI and chooses to skip that type, what command do I use to get the program to see if the SWIR checkbox is checked instead of having the program 'return'? Each acquisition type is seperated in the program because several other data processing functions need to be called for each type - so these warnings are not simply in the same if statement.
> I tried the following, but it simply returns for all cases:
>
> if var_fci==1;
> if length(bad_fci)==3;
> buttons=questdlg({' The data on file shows that the pure component'
> 'you have selected was extremely fluorescent during'
> 'FCI acquisitions. Are you sure you want to proceed'
> 'with processing this data?'},'High Fluorescence Warning','Yes',...
> 'No','Info','No');
> switch buttons
> case 'Yes'
> case 'No'
> if checkit_rci==1; %rci check box
> elseif checkit_swir==1; %swir check box
> else
> msgbox('Please uncheck FCI box to continue.') %no other checkbox
> return
> end
>
> As always, thanks for your help MATLAB community
> Maxx
get(handles.my_checkbox,'Value');
|