%% Using an External Function in a Test Sequence Block
% This example shows how to call an externally-defined function from the
% Test Sequence block. Define a function in a script on the MATLAB(R) path,
% and call the function from the test sequence. 

%%
% In this example, the step
% |ReducedSine| reduces the signal |sg| using the function |Attenuate|.

%%
model = 'TestSeqOutputFunctions';
load_system(model)

%%
%
% <<../external_function_test_seq.png>>

%%
% The test sequence produces signal |sg| and attenuated signal |asg|.
sim(model)
open_system([model '/Scope2'])

%%
close_system(model,0)


%% 
% Copyright 2012 The MathWorks, Inc.