Products & Services Solutions Academia Support User Community Company

Learn more about Control System Toolbox   

upsample - Upsample discrete-time LTI systems

Syntax

sysl = upsample(sys,L)

Description

sysl = upsample(sys,L) resamples the discrete-time LTI model sys at a sampling rate that is L-times faster than the sampling time of sys (Ts0). L must be a positive integer. When sys is a TF model, H(z), upsample returns sysl as H(zL) with the sampling time Ts0 / L.

The responses of models sys and sysl have the following similarities:

Example

Create a transfer function with a sampling time that is 14 times faster than that of the following transfer function:

sys = tf(0.75,[1 10 2],2.25)

Transfer function:
     0.75
--------------
z^2 + 10 z + 2

Sampling time: 2.25

To create the upsampled transfer function sys1, type the following commands:

L=14;
sys1 = upsample(sys,L)

These commands return the result:

Transfer function:
       0.75
------------------
z^28 + 10 z^14 + 2

Sampling time: 0.16071

The sampling time of sys1 is 0.16071 seconds, which is 14 times faster than the 2.25 second sampling time of sys.

See Also

d2d, d2c, c2d, ltimodels

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS