Examples


Use this example index to jump to code examples in the documentation.

Getting Started

Running a Demo Model
Building a Simple Pendulum
Visualizing a Simple Pendulum
A Four Bar Mechanism

Modeling Machine Components

Massless Connector Example: Triple Pendulum
Massless Connector Example: Four Bar Mechanism
Disassembled Joint Example: Four Bar Mechanism
Constraint Example: Gear Constraint
Driver Example: Using the Angle Driver

Mechanical Applications

Body Actuator Example: Pure Kinetic Friction
Joint Actuator Example: Body Driver
Joint Stiction Actuator Example: Mixed Static and Kinetic Friction
JICA Example: A Simple Pendulum
Inserting a Linear Force Between Bodies
Inserting a Linear Force or Torque Through a Joint
Customizing Force Elements with Sensor-Actuator Feedback
DoF Example: Double Pendulum
DoF Example: Four Bar Mechanism

Ways to Use SimMechanics

Closed-Loop Example: Four-Bar System
Open-Topology Example: Double Pendulum
Unconstrained Example: Spring-Loaded Double Pendulum
Constrained Example: Four-Bar System
Model Linearization Example: Double Pendulum

Command Examples

One Primitive
Multiple Primitives

Learn more about the latest releases of MathWorks products:

 © 1994-2010 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS