MATLAB: Am I not able to view the source code for some built-in block functions in Real-Time Workshop

builtfunctionfunctionsinrealsimulink codertime

I would like to see the source code for some functions used by some built-in Simulink blocks, like the function "rt_Lookup" that is used for Simulink Lookup Table blocks. I can not find the source code for this function, only the post compilation object file.

Best Answer

You can find Real-Time Workshop source files under the following directory:
$MATLAB/rtw/c/libsrc/
Where $MATLAB is the MATLAB root directory on your machine.
You can find more information about Real-Time Workshop source files at the following URL: