YALMIP and Simulink

I have been asked frequently recently whether it is possible to have YALMIP code in Simulink simulations. The answer is yes, but there are some caveats. Check out the Simulink simulation example.