This example shows how to use the MATLAB System block to implement Simulink® blocks using a System object™. It highlights two MATLAB System blocks. Access the MATLAB source code for each System object by clicking the "Source Code" hyperlink from the block dialog.
The Delay block uses a System object that has direct feedthrough set to false. This implies that the System object does not directly use the input to compute the output. Therefore, the Delay block could be safely used in a feedback system without introducing an algebraic loop.
The LMS Adaptive Filter block estimates the coefficients of an unknown system (formed by the Unknown System and Delay blocks). Its inputs are the desired signal and the actual signal. Its outputs are the estimated signal and the vector norm of the error in the estimated coefficients.
The Scope displays the error in the estimated signal and the vector norm of the error in the estimated coefficients.