function requires more input arguments to run
2 views (last 30 days)
Show older comments
this is my context:
function [v_time,v_frec,stft_fd,elapsed_time]=STFT_FD1(v_t,x,Ts,NC)
initial_time=cputime;
NS=size(x,2);
v_time = v_t(1+(2*NC/2):NS-(2*NC)/2);
v_frec = [];
v_p = [];
stft_fd=[];
for p=2:NS/NC
v_frec = [v_frec, 1/(p*Ts)];
v_p=[v_p,p];
NW=p*NC;
window=hamming(NW)';
for t=NW/2:NS-NW/2
wx=window(1:NW).*x(t-NW/2+1:t+NW/2);
fft_wx=fft(wx);
stft_fd(t,p)=fft_wx(1+NC);
end;
end;
%Calculate the elapsed time
elapsed_time=cputime-initial_time;
end
is there any need to build it please help us to find out.
0 Comments
Answers (0)
See Also
Categories
Find more on Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!