%% When Sweep Time Is Greater than Target Time
% This example shows the unexpected behavior that might arise in the Chirp
% block when the *Sweep time* is greater than *Target time*. The Time Scope
% displays the signal output, and the Spectrum Analyzer displays the
% spectrogram in the frequency domain.
% 
% Copyright 2018 The MathWorks, Inc.

%%
% Set the *Sweep time* parameter to |1.5| and specify the final frequency
% of a bidirectional sweep by setting *Target time* equal to *Sweep time*.
% The sweep reaches the *Target frequency* (25 Hz) at the *Target time* (1
% second), but since *Sweep time* is greater than *Target time*, the sweep
% continues on its linear path until one *Sweep time* (1.5 seconds) is
% traversed.
%
% Unexpected behavior might arise when you set *Sweep time* greater than
% *Target time*.
%%
% Run the model to see the chirp signal output and a spectrogram of the
% frequency domain.
model = 'ex_chirp_target_time_sweep';
open_system(model)
%%
sim(model)
open_system([model '/Time Scope'])
open_system([model '/Spectrogram'])
