This example shows how to call an externally-defined function from the Test Sequence block. Define a function in a script on the MATLAB® path, and call the function from the test sequence.
In this example, the step
ReducedSine reduces the signal
sg using the function
The test sequence produces signal
sg and attenuated signal