Documentation

smnew

Open Simscape Multibody model template and block library

Syntax

Description

example

smnew opens the Simscape™ Multibody™ model template and block library. The template contains commonly used blocks and employs variable-step automatic solver selection for best performance. Simscape data logging is enabled by default, with the data history limit set to 10,000 data points.

example

smnew(modelName) adds an option to specify the name of the template-based model.

example

smnew(modelName,solverType) adds an option to specify the model Simulink® solver.

Examples

collapse all

Open the Simscape Multibody model template from the MATLAB® command prompt:

smnew

The Simscape Multibody model template and block library open. The template is named untitled and its solver type is set to auto.

Name the model template robotto:

smnew('robotto')

The Simscape Multibody model template and block library open. The template is named robotto.

Name the model template robotto and set the Simulink solver type to ode15s:

smnew('robotto','ode15s')

The Simscape Multibody model template and block library open. The template is named robotto and its solver type is set to ode15s.

Related Examples

Input Arguments

collapse all

Name of the template-based model. The model name must conform to the MATLAB naming rules. Do not include the file path in the model name. If the specified character vector is invalid, the model opens as untitled.

Example: 'robotto'

Data Types: char

Solver to use for model simulation. The solver type must be a valid Simulink solver, such as ode45, or ode15s. Specify a variable-step solver unless you have a specific need for a fixed-step solver.

Example: 'ode15s'

Data Types: char

See Also

Introduced in R2012a


Was this topic helpful?