This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Create new Simscape model populated by required and commonly used blocks




ssc_new creates a new Simscape™ model, with required and commonly used blocks already on the model canvas, and opens the Simscape library.

The function also turns on simulation data logging for the whole model, using the default workspace variable name simlog and limiting the logged simulation data to 10000 points. For more information, see Data Logging.

By default, the function uses the Simulink® default new model name untitled and the recommended solver VariableStepAuto.

ssc_new('modelname')creates a new Simscape model with the specified name.

ssc_new('modelname','domain')creates a new Simscape model with the specified name and with domain-specific reference block added to the model canvas. Valid domains types are 'electrical', 'gas', 'hydraulic', 'magnetic', 'rotational', 'translational', 'thermal', 'thermal_liquid', and 'two_phase_fluid'. You can use a cell array of domain types to add more than one type of reference block.

ssc_new('modelname','domain','solver') creates a new Simscape model with the specified name, domain type, and with the specified solver type. Recommended solver types for Simscape 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 Setting Up Solvers for Physical Models.


To create a generic Simscape model, type:


The software opens the main Simscape library and creates a new untitled model, with the default solver set to VariableStepAuto. The model contains a Solver Configuration block, a Simulink-PS Converter block, and a PS-Simulink Converter block connected to a Scope block.

To create a hydraulic model, called hydraulic_actuator and using the ode15s solver, type:


The software opens the main Simscape library and creates the following model.

After using ssc_new, continue developing your model by copying the blocks, as needed, and adding other blocks from the Simscape libraries.

Introduced in R2009a

Was this topic helpful?