bodeplot: Bode plot

Description Usage Arguments Value Examples

View source: R/bodeplot.R

Description

Bode plot

Usage

1
2
bodeplot(fr, fr.unit = NULL, n = NULL, d = NULL, A = NULL, B = NULL,
  C = NULL, D = NULL, highlight = NULL, label = NULL, as.period = F)

Arguments

fr

Frequency range in powers of 10

fr.unit

Unit of the frequency

n

Numerator coefficients of a transfer function

d

Denominator coefficients of a transfer function

A

Matrix A of a state-space representation

B

Matrix B of a state-space representation

C

Matrix C of a state-space representation

D

Matrix D of a state-space representation

highlight

Optional highlights in the plot

label

Optional labels on the highlights

as.period

Flag to plot as period

Value

Bode magnitude and phase plot

Examples

1
2
3
4
5
6
7
bodeplot(fr = c(0, 1), n = c(1, 0.1, 7.5), d = c(1, 0.12, 9, 0, 0))
bodeplot(fr = c(0, 1),
          A = matrix(c(-1,1,0,-1), nrow = 2),
          B = matrix(c(-1,1), nrow = 2),
          C = matrix(c(0,1), ncol=2),
          D = 0,
          highlight = 2, label = "Highlight")

pascalschulthess/freqr documentation built on May 24, 2019, 6:16 p.m.