Learn R Programming

fftab (version 0.1.0)

get_rect: Extract Rectangular or Polar Components

Description

The get_rect and get_polr functions extract specific components from a fftab object, representing the Fourier coefficients in either rectangular or polar form.

Usage

get_rect(x)

get_polr(x)

Value

  • get_rect: A matrix with two columns:

    • re: The real part of the coefficients.

    • im: The imaginary part of the coefficients.

  • get_polr: A matrix with two columns:

    • mod: The magnitude of the coefficients.

    • arg: The phase angle of the coefficients, in radians.

Arguments

x

A matrix object containing FFT results.

See Also

get_fx(), get_re(), get_mod(), to_rect(), to_polr()

Examples

Run this code
fftab(c(1, 0, -1, 0)) |> get_rect()

fftab(c(1, 0, -1, 0)) |> get_polr()

Run the code above in your browser using DataLab