[go: up one dir, main page]

Menu

[17deec]: / comp / comp_dtwfb.m  Maximize  Restore  History

Download this file

18 lines (13 with data), 464 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
function c = comp_dtwfb(f,nodes,dualnodes,rangeLoc,rangeOut,ext,do_complex)
% First tree
c1 = comp_wfbt(f,nodes,rangeLoc,rangeOut,ext);
% Second tree
c2 = comp_wfbt(f,dualnodes,rangeLoc,rangeOut,ext);
% Combine outputs of trees
c = cellfun(@(crEl,ciEl) (crEl+1i*ciEl)/2,c1,c2,'UniformOutput',0);
if do_complex
% Non-real specific
cneg = cellfun(@(crEl,ciEl) (crEl-1i*ciEl)/2,c1,c2,...
'UniformOutput',0);
c = [c;cneg(end:-1:1)];
end