Skip to main content
added 42 characters in body
Source Link
jojeck
  • 11.2k
  • 6
  • 38
  • 75

Here's some Matlab code:

% Assume 'x' is the input time-domain sequence and 'y' is it's Hilbert transform.

Analytic_Signal = hilbert(x); y = imag(Analytic_Signal);

Instantaneous_Magnitude = abs(Analytic_Signal);

Instantaneous_Phase = unwrap(atan2(y, x));

Instantaneous_Freq = diff(Instantaneous_Phase);

% Assume 'x' is the input time-domain sequence and 'y' is it's Hilbert transform.

Analytic_Signal = hilbert(x);
y = imag(Analytic_Signal);

Instantaneous_Magnitude = abs(Analytic_Signal);

Instantaneous_Phase = unwrap(atan2(y, x));

Instantaneous_Freq = diff(Instantaneous_Phase);

Here's some Matlab code:

% Assume 'x' is the input time-domain sequence and 'y' is it's Hilbert transform.

Analytic_Signal = hilbert(x); y = imag(Analytic_Signal);

Instantaneous_Magnitude = abs(Analytic_Signal);

Instantaneous_Phase = unwrap(atan2(y, x));

Instantaneous_Freq = diff(Instantaneous_Phase);

Here's some Matlab code:

% Assume 'x' is the input time-domain sequence and 'y' is it's Hilbert transform.

Analytic_Signal = hilbert(x);
y = imag(Analytic_Signal);

Instantaneous_Magnitude = abs(Analytic_Signal);

Instantaneous_Phase = unwrap(atan2(y, x));

Instantaneous_Freq = diff(Instantaneous_Phase);
added 51 characters in body
Source Link
Richard Lyons
  • 5.9k
  • 1
  • 14
  • 26

Here's some Matlab code:

% Assume 'x' is the input time-domain sequence and 'y' is it's Hilbert transform.

Analytic_Signal = hilbert(x); y = imag(Analytic_Signal);

Instantaneous_Magnitude = abs(Analytic_Signal);

Instantaneous_Phase = unwrap(atan2(Analytic_Signaly, x));

Instantaneous_Freq = diff(Instantaneous_Phase);

Here's some Matlab code:

% Assume 'x' is the input time-domain sequence.

Analytic_Signal = hilbert(x);

Instantaneous_Magnitude = abs(Analytic_Signal);

Instantaneous_Phase = unwrap(atan2(Analytic_Signal));

Instantaneous_Freq = diff(Instantaneous_Phase);

Here's some Matlab code:

% Assume 'x' is the input time-domain sequence and 'y' is it's Hilbert transform.

Analytic_Signal = hilbert(x); y = imag(Analytic_Signal);

Instantaneous_Magnitude = abs(Analytic_Signal);

Instantaneous_Phase = unwrap(atan2(y, x));

Instantaneous_Freq = diff(Instantaneous_Phase);

Source Link
Richard Lyons
  • 5.9k
  • 1
  • 14
  • 26

Here's some Matlab code:

% Assume 'x' is the input time-domain sequence.

Analytic_Signal = hilbert(x);

Instantaneous_Magnitude = abs(Analytic_Signal);

Instantaneous_Phase = unwrap(atan2(Analytic_Signal));

Instantaneous_Freq = diff(Instantaneous_Phase);