| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimMechanics |
| Contents | Index |
| Learn more about SimMechanics |
import_physmod
import_physmod('-license')
import_physmod('filename.xml')
import_physmod('filename.xml', option1, value1, option2,
value2, ...)
import_physmod with no inputs opens the Import Physical Modeling XML dialog box. In the dialog box, you select the XML file to import and the function options.
import_physmod('-license') displays the third-party license for use of this function.
import_physmod('filename.xml') generates a SimMechanics model from a Physical Modeling XML file called filename.xml. The .xml extension for the filename input is optional. For a computer-aided design (CAD)-generated XML file, the name of the generated model is the same as the original CAD assembly, regardless of the name of the XML file.
import_physmod('filename.xml', option1, value1, option2, value2, ...) generates the SimMechanics model filename.mdl from filename.xml using the specified option-value pairs when importing. The .xml extension for the filename input is optional.
![]() | Function Reference | mech_get_states | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |