inserting code in sim-mechanics model

How to add functions to Sim-mechanics model. I wish to add functions to control force acting on a body and path planning in a Sim-mechanics model.

 采纳的回答

Guy Rouleau
Guy Rouleau 2011-12-22
Use Sensor blocks to measure the motion (position, velocity, acceleration of bodies and joints). In Simulink implement any function you want and feed the computed force to SimMechanics using Actuator blocks.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simscape Multibody 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by