Simulink Control Design™ - MathWorks

(Tuis.) #1

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)

15 Alphabetical List

Free download pdf