User`s guide
10 Targeting Custom Hardware
10-20
Setting the MATLAB Path
The device driver blocks in a library can automatically change your MATLAB
path to ensure that Simulink can find the MEX-file. This is accomplished by
calling the
addpath M-file as part of the masked block’s initialization
command. This command is executed whenever you start a simulation or
generate code.