Skip to Main Content Skip to Search
Product Documentation

fselect - Extract sinestream signal at specified frequencies

Syntax

input2 = fselect(input,fmin,fmax)
input2 = fselect(input,index)

Description

input2 = fselect(input,fmin,fmax) extracts a portion of the sinestream input signal input in the frequency range between fmin and fmax. Specify fmin and fmax in the same frequency units as the sinestream signal.

input2 = fselect(input,index) extracts a sinestream signal at specific frequencies, specified by the vector of indices index.

Examples

Extract the second frequency in a sinestream signal:

% Create the input signal
input = frest.Sinestream('Frequency',[1 2.5 5],...
                      'Amplitude',[1 2 1.5],...
                      'NumPeriods',[4 6 12],...
                      'RampPeriods',[0 2 6]);

% Extract a sinestream signal for the second frequency
input2 = fselect(input,2)

% Plot the extracted input signal
plot(input2)

See Also

fdel | frest.Sinestream | frestimate

How To

  


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