Open new model with common SimMechanics blocks
smnew creates a new SimMechanics™ model, with required and commonly used blocks already on the model canvas, and opens the sim_lib library. The default model name is untitled and the default solver is ode45 (the recommended solver).
The new model contains the following blocks:
smnew(modelname) creates a new SimMechanics model with the specified name. If you specify an invalid model name, the model name is untitled. The default solver is ode45, which is the recommended solver.
String specifying the name for the new model. Do not include a file extension.
String specifying the name of a Simulink solver. If you choose not to use the default ode45 solver, other recommended solver types for SimMechanics models are ode15s, ode23t, and ode14x. You can use other Simulink solvers, but, depending on the particular model, they may be less suitable. For more information, see Improving Performance and Setting Up Solvers for Physical Models.
Create a new SimMechanics model, using the default model name (untitled) and the default solver (ode45).
The command opens the sm_lib library, as well as a SimMechanics model called untitled, with several commonly used blocks.
Create a new SimMechanics model, named simple_body. Use the ode23t solver.
The command opens the sm_lib library, as well as a SimMechanics model called simple_body, with several commonly used blocks. The model uses the ode23t solver.