Learn R Programming

gsignal (version 0.3-1)

gmonopuls: Gaussian monopulse

Description

Returns samples of the unit-amplitude Gaussian monopulse.

Usage

gmonopuls(t, fc = 1000)

Arguments

t

Vector of time values at which the unit-amplitude Gaussian monopulse is calculated.

fc

Center frequency of the Gaussian monopulses, specified as a real positive scalar expressed in Hz. Default: 1000

Value

Samples of the Gaussian monopulse, returned as a vector of unit amplitude at the times indicated by the time vector t.

Examples

Run this code
# NOT RUN {
fs <- 11025    # arbitrary sample rate
t <- seq(-10, 10, 1/fs)
y1 <- gmonopuls(t, 0.1)
y2 <- gmonopuls(t, 0.2)
plot(t, y1, type="l", xlab = "Time", ylab = "Amplitude")
lines(t, y2, col = "red")
legend("topright", legend = c("fc = 0.1", "fc = 0.2"),
       lty = 1, col = c(1, 2))

# }

Run the code above in your browser using DataLab