-
Notifications
You must be signed in to change notification settings - Fork 7
/
setOpts.m
executable file
·57 lines (48 loc) · 1.59 KB
/
setOpts.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
function hmainOpts=setOpts(algIndex)
global tdalabStatus paraList algOptions paraTypeList algs;
global NumOfComp;
if nargin==0
tdalabStatus.algIndex=tdalabStatus.algIndex(1);
algIndex=tdalabStatus.algIndex;
end
if isempty(algIndex)
errordlg('No algorithm selected.','Error','modal');
return;
end
for idx=algIndex
if ~isstruct(algOptions{idx})
algOptions{idx}=struct();
end
if isfield(paraList{idx},'NumOfComp')&&~isempty(NumOfComp)&&sum(NumOfComp)>0
algOptions{idx}.NumOfComp=NumOfComp;
end
end
[opts hmainOpts]=guiSetOpts(algs(algIndex),paraTypeList(algIndex),paraList(algIndex),algOptions(algIndex));
if ~isempty(opts)
pos=1;
for idx=algIndex
algOptions{idx}=opts{pos};
pos=pos+1;
end
end
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% function setPMFalgOpts(hObject,eventdata,source)
% flag=ids>1;
% actModes=1:NumOfMode;
% actModes=actModes(flag);
% if sum(flag)>0
% PMFActParas=PMFsetOpts((ids(flag))-1,actModes);
% end
% end
% function exitBSSAlgID(hObject,eventdata,source)
% ids=ids(:);
% set(heditBSSAlgID,'string',num2str(ids'));
%
% %% set default options for PMF here if it is empty
% if isempty(PMFActParas)
% flag=ids>1;
% PMFActParas=PMFParaListParsing((ids(flag))-1);
% end
%
% delete(hfigAlgID);
% end