-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetDefaultParamsForAllWindows.m
50 lines (44 loc) · 1.16 KB
/
setDefaultParamsForAllWindows.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
% FILE: setDefaultParamsForAllWindows.m
%
% FUNCTION: setDefaultParamsForAllWindows
%
% CALL: wn_param = setDefaultParamsForAllWindows(Wn)
%
% Returns the default parameters for all windows
%
% INPTUS:
% Wn - a vector with the names of the used windows
% Wn contain a set from those bellow:
% boxcar
% triang
% blackman
% chebwin
% hamming
% hanning
% kaiser
% lanczos
% tukeywin
% OUTPUTS:
% wn_param - the default parameters for the given windows
%
% USES:
% checkType
%
% Author: Leonard-Gabriel Necula
% Created: December 24 2020
% Updated: January 18 2021
function wn_param = setDefaultParamsForAllWindows(Wn)
wn_param = []
if nargin < 1
disp('At least one window name must be given.');
return;
elseif isempty(Wn)
disp('At least one window name must be given.');
return;
end
for i = 1:numel(Wn)
if checkType(Wn{i}, [4, 7, 8, 9])
wn_param = [wn_param setParamFor(Wn{i})];
end
end
end