Skip to Main Content Skip to Search
Product Documentation

nkshift - Shift data sequences

Syntax

Datas = nkshift(Data,nk)

Description

Data contains input-output data in the iddata format.

nk is a row vector with the same length as the number of input channels in Data.

Datas is an iddata object where the input channels in Data have been shifted according to nk. A positive value of nk(ku) means that input channel number ku is delayed nk(ku) samples.

nkshift supports both frequency- and time-domain data. For frequency-domain data it multiplies with einkωT to obtain the same effect as shifting in the time domain. For continuous-time frequency-domain data (Ts = 0), nk should be interpreted as the shift in seconds.

nkshift lives in symbiosis with the InputDelay property of linear identified models:

m1 = ssest(dat,4,'InputDelay',nk) 

is related to

m2 = ssest(nkshift(dat,nk),4);

such that m1 and m2 are the same models, but m1 stores the delay information and uses this information when computing the frequency response, for example. When using m2, the delay value must be accounted for separately when computing time and frequency responses.

See Also

absorbDelay | delayest | idpoly | idss

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS