MATLAB: Is there a hidden workspace in Simulink other than the model workspace

simulinksimulink hidden workspace

When running a Simulink model, I get unexpected behaviors if I don't call a clear all before the execution. Strange thing is that both the base and the model workspaces are empty. What could be happening? Where else can I look for those hidden variables?
Thanks!

Best Answer

I found out what was wrong: Simulink won't clear S-functions static memory from run to run. I'm using clear mex for that. Thanks!