In this video I am going to show you how to create an embedded Matlab model which does the same calculation as a Level-2 Matlab S-function.