timeresp
Time response for rational object and rationalfit
function
object
Description
[
computes the output signal that the rational function object produces in response to a give
input signal at the specified sample time, outputsignal
,t
] = timeresp(h
,inputsignal
,ts
)ts
.
Examples
Time Response
Define the input signal.
SampleTime = 2e-11;
OverSamplingFactor = 25;
TotalSampleNumber = 2^12;
InputSignal = sign(randn(1, ...
ceil(TotalSampleNumber/OverSamplingFactor)));
InputSignal = repmat(InputSignal, [OverSamplingFactor, 1]);
InputSignal = InputSignal(:);
Create a rational function object.
S = sparameters('default.s2p'); s21 = rfparam(S,2,1); datafreq = S.Frequencies; fit_data = rationalfit(datafreq,s21,'Tolerance',-32);
Compute the time response.
[y,t]=timeresp(fit_data,InputSignal,SampleTime);
Input Arguments
inputsignal
— Time varying input signal
real finite vector
Time varying input signal, specified as a real finite vector.
Data Types: double
h
— Rational function object
rationalfit
object
Rational function object, specified as a rationalfit
object.
Data Types: double
Complex Number Support: Yes
ts
— Sample time of input signal
positive scalar integer
Sample time of the input signal, specified as a positive scalar integer in seconds.
Data Types: double
Output Arguments
outputsignal
— Time varying output signal
real finite vector
Time varying output signal, returned as a real finite vector.
Data Types: double
t
— Sample time of output signal
nonnegative vector
Sample time of the output signal, returned as a nonnegative vector of time values
with discrete step size ts
corresponding to the data in
outputsignal
in seconds.
Data Types: double
More About
Output Signal Equation
timeresp
function uses the variant of the
following equation to calculate the output signal:
where,
A
— complex vector of poles of the rational function
C
—complex vector of residues of the rational function
D
—scalar value specifying direct feedthrough, and
Delay
— delay time are properties of the rational function object,
h
. For more information, see rationalfit
function.
Version History
See Also
freqresp
| pwlresp
| rationalfit
| makepassive
| writeva
| ispassive
| rfmodel.rational
Apri esempio
Si dispone di una versione modificata di questo esempio. Desideri aprire questo esempio con le tue modifiche?
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)