load_localized_signal.m 563 Bytes
Newer Older
Marina Kreme's avatar
Marina Kreme committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function x_loc = load_localized_signal(ind_localized, resampling_fs,  sig_len, deb)



if nargin ==0
    deb=0;
end

data = load('signal_lists.mat');

n = size(data.localized_sources_files, 1);

if ind_localized > n
    error('%s: The ind_localized value you entered is outside the value range. Please try another value.', upper(mfilename));
end


localized_file = [data.localized_sources_files(ind_localized).folder, ...
    filesep, ...
    data.localized_sources_files(ind_localized).name];
x_loc= wave_read(localized_file, resampling_fs,  sig_len, deb);

end