Main Content

impulse2step

Step response from impulse response

Since R2020a

Description

example

S = impulse2step(I,dt) converts an impulse response I to a step response S, given the uniform sample interval dt.

Examples

collapse all

Load the impulse response column matrix from a file.

load('PulseResponseReflective100ps.mat');

Calculate the step response from the impulse response.

step = impulse2step(impulse,dt);

Plot the step response.

plot(t,step)
xlabel('Time (Seconds)')
ylabel('Volts')
title('Step Response')

Input Arguments

collapse all

Input impulse response, specified as a column matrix. The first column contains the primary impulse response and the subsequent columns (if any) contain the crosstalk impulse responses.

Data Types: double

Uniform timestep of the waveform, specified as a real positive scalar in seconds.

Data Types: double

Output Arguments

collapse all

Converted step response, returned as a column matrix. The first column contains the primary step response and the subsequent columns (if any) contain the crosstalk step responses.

Data Types: double

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2020a