You can generate code from a SimMechanics™ model for deployment outside the MATLAB® environment. This example shows how to configure a four-bar model for code generation using a variable-step solver with the objective of execution efficiency. The example uses the default Simulink® solver ode45 (Dormand-Prince).