Step-signal response for rational object and rationalfit function object
rationalfit
[outputsignal,tout] = stepresp(h,ts,n,trise)
example
[outputsignal,tout] = stepresp(h,ts,n,trise) computes the time domain response of a rational function object, h, to a step signal based on the number of samples, n and the rise time, trise.
outputsignal
tout
h
ts
n
trise
collapse all
Calculate the step response of a rational function object from the file passive.s2p. Read passive.s2p.
passive.s2p
S = sparameters('passive.s2p'); freq = S.Frequencies;
Get S11 and convert to a TDR transfer function.
s11 = rfparam(S,1,1); Vin = 1; tdrfreqdata = Vin*(s11+1)/2;
Fit to a rational function object.
tdrfit = rationalfit(freq,tdrfreqdata);
Define parameters for a step signal. Define parameters for a step signal
Ts = 1.0e-11; N = 10000; Trise = 1.0e-10;
Calculate the step response for TDR and plot it
[tdr,t1] = stepresp(tdrfit,Ts,N,Trise); figure plot(t1*1e9,tdr) ylabel('TDR') xlabel('Time (ns)')
Rational function object, specified as a rationalfit object handle.
Example:
Data Types: double Complex Number Support: Yes
double
Sample time of the input signal, specified as a positive scalar integer in seconds.
Data Types: double
Number of samples, specified as a positive scalar integer.
Time taken for step signal to reach maximum value, specified as a positive scalar integer in seconds.
Output signal,
Sample time of the output signal, returned as a positive scalar integer in seconds.
RF Toolbox™ uses the following equation to for the step signal:
{U(kts)=kts/trise,U(kts)=1, 0≤k<(trise/ts)(trise/ts)≤k≤N
The following figure illustrates the construction of this signal.
freqresp | ispassive | makepassive | pwlresp | rationalfit | rfmodel.rational | writeva
freqresp
ispassive
makepassive
pwlresp
rfmodel.rational
writeva
You have a modified version of this example. Do you want to open this example with your edits?