can an array be passed to rceps?
显示 更早的评论
Using rceps to find pulses in whale clicks. When the 8 clicks (8x4967) are averaged into one click (1x4967) and the average click passed to rceps the result is an interval between clicks of 3.01563 mS. That is is time between the 2nd click and third click. When the array of 8 clicks (8x4967) passed to rceps and the results averaged all three pulses in the whale click are visible. The time between the pulses look correct. Is it valid to send an array to rceps?
avg_click=mean(whale_clicks);%calculate average click from 8 whale clicks
[k,l]=size(whale_clicks);
fs=192000;%sampling frequency 192000 samples per second
for i =1:l;%calculate time points for samples
ts(i)=(i-1)*(1/192000);
end
% calculate real cepstrum of the average whale click squared
[C1,C1min]=rceps(avg_click.^2);%use "power" square the time series values
%calculate real cepstrum of each of the 8 whale click squared
[C2,C2min]=rceps((whale_clicks).^2);
figure
plot(ts,C1)
title('real cepstrum average click squared')
xlabel('quefrency (seconds)')
figure
Z= mean(C2,1);%calculate the average of the 8 cepstra (One from each click)
plot(ts,Z)
title('average of real cepstrum of (each whale clicks squared)')
xlabel('quefrency (seconds)')
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!