Impulse response from pulse response
The function computes the step response from the pulse response. The derivative of the pulse response is the impulse response.
The function calculates the derivative with zero delay and is reasonably accurate upto one half of the Nyquist rate. But at the Nyquist rate, the derivative calculation diverges rapidly back to zero.
Create Impulse Response from Pulse Response
Load the pulse response column matrix from a file.
Calculate the sample interval.
dt = SymbolTime/SamplesPerSymbol;
Calculate the impulse response.
I = pulse2impulse(pulse,SamplesPerSymbol,dt );
Plot the impulse response.
figure plot(t,I) xlabel('Time (Seconds)') ylabel('Volts') title('Impulse Response')
P — Pulse response
Input pulse response, specified as a column matrix. The first column contains the primary pulse response and the subsequent columns (if any) contain the crosstalk pulse responses.
N — Number of samples per symbol
positive integer scalar
Number of samples per symbol, specified as a positive integer scalar.
dt — Uniform sampling interval
positive real scalar
Uniform timestep of the waveform, specified as a real positive scalar in seconds.
I — Impulse response
Converted impulse response, returned as a column matrix. The first column contains the primary impulse response and the subsequent columns (if any) contain the crosstalk impulse responses.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Introduced in R2020a