Time period to Instantaneous frequency

Status
Not open for further replies.

ToShare

Newbie level 1
Joined
Dec 23, 2014
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
7
I have simple smooth time signal with different time periods. I would like to transfer period over the time to frequency, and to present frequency changing over the time, I would call it Instantaneous frequency?

Here is Matlab Code, is it right?

x = data;
z = hilbert(x);
N = length(z);
fs= sampling frequency ;
f = angle(z(2:N).*conj(z(1:N-1)))/2/pi*fs;
t = [1:length(f)]/fs;
plot(t,f);
xlabel('Sec');
ylabel('Hz');
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…