how to change body's mass when model is simulating?

Hello,everyone,i want to know how to change body's mass when model is simulating?if it can be done? how to change it?when i change it use s-function,i can not work.

Answers (1)

I'm not sure what the implication with the s-function is, however, there is the variable mass and inertia block that you can connect to a CS port on a SimMechanics block to vary the mass.

Asked:

on 17 Jul 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!