UpdateSelectedGraphs_jd

PURPOSE ^

SYNOPSIS ^

function SelectedGraphs = UpdateSelectedGraphs_jd(hObject, eventdata, handles, axes, visible)

DESCRIPTION ^

 This function finds the indexes of selected graphs based on the listbox 
 user selection.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function SelectedGraphs = UpdateSelectedGraphs_jd(hObject, eventdata, handles, axes, visible)
0002 %
0003 % This function finds the indexes of selected graphs based on the listbox
0004 % user selection.
0005 %
0006 graphtypes = get(hObject,'String');
0007 graphtypesselected = graphtypes(get(hObject,'Value'));
0008 %
0009 SelectedGraphs = [];
0010 %
0011 for iGraph = 1:length(handles.graphs),
0012     for iList = 1:length(graphtypesselected),
0013         if isequal(handles.graphs{iGraph}.axes,axes)...
0014          & isequal(handles.graphs{iGraph}.type,graphtypesselected{iList}),
0015             SelectedGraphs = [SelectedGraphs,iGraph];
0016         end
0017     end
0018 end
0019 %
0020 UpdateVisible_jd(visible, [], handles, axes, SelectedGraphs);
0021 %

Community support and wiki are available on Redmine. Last update: 18-Apr-2019.