Engee documentation

stepresp

The response of an object of a rational function to a step signal.

Library

EngeeRF

Syntax

Function call

  • outputsignal,tout = stepresp(h,ts,n,trise) — calculates the response of an object given by a rational function h, to a step signal in the time domain, based on the number of samples n, the sampling period ts and the rise time of the input signal trise.

Arguments

Input arguments

# h — the object of a rational function

+ rational object | rationalfit object

Details

An object of a rational function, given as an object rational or rationalfit.

Типы данных

Float64

Support for complex numbers

Yes

# ts is the sampling period of the input signal

+ scalar

Details

The sampling period of the input signal in seconds, specified as a positive integer.

Типы данных

Int64

# n — number of samples

+ scalar

Details

The number of samples specified as a positive integer.

Типы данных

Int64

# trise — the time when the step signal reaches the maximum value

+ scalar

Details

The time in seconds required for the step signal to reach the maximum value, set as a positive integer.

Типы данных

Int64

Output arguments

# outputsignal — calculated response to the step signal

+ vector

Details

The calculated response to the step signal returned as a real vector with finite values.

Типы данных

Float64

# tout — sampling period of the output signal

+ vector

Details

The sampling period of the output signal in seconds, returned as a vector of non-negative time values with discrete steps ts corresponding to the data in outputsignal.

Типы данных

Float64

Additional information

The step signal equation

Details

The following equation is used to construct the step signal:

Where — sampling period ts, — rise time trise, — number of counts n, and — index of reference.

The figure below shows the formation of this signal.

stepresp