MATLAB: Does Simulink not point to the block throwing a warning from the mask in Simulink 6.5 (R2006b)

simulink

I have a model with a lot of masked blocks, and I use the Initialization pane. One of them throws a warning regarding Singular matrices.
This warning appears in the command window but points to nothing (no .m file, no block).
It took me a while to find where this important warning comes from.
It would have been easier if Simulink had pointed me to the block throwing the warning.

Best Answer

The ability to know which block is throwing a warning when this warning comes from a block's mask is not available in Simulink 6.5 (R2006b).
To work around this issue, you can write your mask's callback functions in a .m file. The command window will indicate the line of the .m file throwing the warning.