Diff of /comp/comp_window.m [76dce7] .. [89ea83] Maximize Restore

  Switch to unified view

a/comp/comp_window.m b/comp/comp_window.m
...
...
86
    info.gauss=1;
86
    info.gauss=1;
87
   case {'psech','sech'}
87
   case {'psech','sech'}
88
    complain_L(L,callfun);
88
    complain_L(L,callfun);
89
    [g,info.tfr]=psech(L,g{2:end});    
89
    [g,info.tfr]=psech(L,g{2:end});    
90
   case {'dual'}
90
   case {'dual'}
91
    gorig = g{2};   
91
    [g,info.auxinfo] = comp_window(g{2},a,M,L,lt,callfun);    
92
    [g,info.auxinfo] = comp_window(gorig,a,M,L,lt,callfun);    
92
    if isrect
93
    if isrect
93
      g = gabdual(g,a,M,L);
94
      g = gabdual(g,a,M,L);
94
    else
95
    else
95
      g = gabdual(g,a,M,L,'lt',lt);
96
      g = gabdual(g,a,M,L,'lt',lt);
96
    end;
97
    end;
98
    % gorig can be string or cell array
99
    if info.auxinfo.isfir 
100
    % Original window is FIR, dual window is FIR if length of the original
101
    % window is <= M. This is true if the length was not explicitly
102
    % defined (gorig{2}).
103
      if iscell(gorig) && numel(gorig)>1 && isnumeric(gorig{2}) && gorig{2}<=M...
104
         || ischar(gorig)   
105
        info.isfir = 1; 
106
      end
107
    end
97
    info.isdual=1;
108
    info.isdual=1;
98
   case {'tight'}
109
   case {'tight'}
110
    gorig = g{2};
99
    [g,info.auxinfo] = comp_window(g{2},a,M,L,lt,callfun);    
111
    [g,info.auxinfo] = comp_window(gorig,a,M,L,lt,callfun);    
100
    if isrect
112
    if isrect
101
      g = gabtight(g,a,M,L);
113
      g = gabtight(g,a,M,L);
102
    else
114
    else
103
      g = gabtight(g,a,M,L,'lt',lt);
115
      g = gabtight(g,a,M,L,'lt',lt);
104
    end;
116
    end;
117
    % The same as in dual?
105
    info.istight=1;
118
    info.istight=1;
106
   case firwinnames
119
   case firwinnames
107
    g=firwin(winname,g{2},'energy',g{3:end});
120
    g=firwin(winname,g{2},'energy',g{3:end});
108
    info.isfir=1;
121
    info.isfir=1;
109
   otherwise
122
   otherwise