Answered
Why doesn't mech_import read my .xml files
The import command can only read XML files that were exported by the Simscape Multibody plugin for supported CAD systems. Make ...

19 days ago | 0

Answered
Is there any prescribed method to model joints with clearances in SimMechanics?
In Simscape Multibody (formerly named SimMechanics), you can enable joint limits to simulate joints with clearance. You can ena...

19 days ago | 1

| accepted

Answered
Placing a Joint on a Moving Center of Mass in Simscape Multibody
To measure the location of the CG, you can use the Inertia Sensor block. https://www.mathworks.com/help/physmod/sm/ref/...

19 days ago | 0

| accepted

Answered
Is it possible to analyze the flexible multibody with hard initial position?
Hi Makoto, There are some options: You can define the initial positions and speeds of the joints that connect the flexible be...

23 days ago | 1

| accepted

Answered
Whats going on with this example in Mathworks? (user-added-coordinate-systems)
Hi Giorgos, You need to make sure the frames that are connected to the Common Gear Constraint have the correct orientation. Th...

1 month ago | 0

Answered
Model an Atwoods Machine
The Pulley Block is very useful for these kinds of systems. Take a look at this Simscape Multibody example of a block and tackl...

1 month ago | 0

Answered
How to locate all the continuous blocks in a Simulink/Simscape model?
Hi Spencer, Normally this diagnostic will indicate that the model must have no continuous states to use the discrete solver. G...

1 month ago | 0

Answered
Center of mass of a system composed by sub-assemblies in SimMechanics 2G
Hi Marcello, You can extract the information you are looking for using the Simscape Multibody Inertia Sensor, added in R2019b. ...

1 month ago | 0

Answered
[SimMechanics Gen 2] Translation in global world frame
Hi H, The Rigid Transform block always operates relative to the base frame. If you have a parameterization that is relative to...

1 month ago | 0

Answered
Revolute Joint measure angle / normalize
Hi Tobias, I believe there is a solution using the mod block. See screenshot below and attached model. --Steve

1 month ago | 0

Answered
I have some 3D models made in CATIA,i want to know how can i bring them to MATLAB workspace and perform optimization on the part?
The File Solid block can read in generic CAD formats as well as CAD software-specific formats, such as CATIA. Among the suppo...

1 month ago | 0

Answered
Simulating friction on floor for a humanoid in simmechanics second generation
As long as your friction force depends on the normal force, you have the signs correct, and you make it into static friction (re...

1 month ago | 0

Answered
simmechanics, transfer functions
You need to add input signals from input ports at your input locations (actuating joints, perhaps?) and then get output signals ...

1 month ago | 0

Answered
How do I make a little cart (prismatic joint) move from point A to point B in simmechanics second generation
Your input should be a Ramp block followed by a saturation block to limit the output to 5. --Steve

1 month ago | 0

Answered
Expand Simulink student licence to use more blocks
You need to somehow reduce the number of blocks by a factor of 5. Some suggestions: Combine blocks into more complex express...

1 month ago | 0

Answered
How do I visualize Mechanics Explorer of referenced models?
Through release R2021b, you cannot visualize the simulation results within the Mechanics Explorer of a referenced model. Some...

1 month ago | 0

Answered
How to keep a solid stationary even when a force is acting upon it?
Hi Samuel, I adjusted your model so that the red brick is rigidly attached to ground using a Rigid Transform, and the motor is ...

1 month ago | 0

Answered
How to define joint angles in a .mat file
You can save any numerical data to a .mat file using the save command. You load that file using the load command. Once the v...

1 month ago | 0

Answered
How to co-simulate Simscape multibody and unreal engine?
Hi Jingchao, MathWorks provides blocks in a number of products that allow you to send information to Unreal and bring informati...

1 month ago | 0

| accepted

Answered
Double Wishbone Suspension code
Hi Mahdy, There is a shipping example in Simscape Multibody that has a double-wishbone suspension https://www.mathworks.com/he...

1 month ago | 0

Answered
How can you define the units of a multibody PS Constant Block?
Starting with release R2019a, it is possible to specify units on all physical signal blocks, and unit conversions are handled au...

1 month ago | 0

Answered
Modelling backlash in joints SIMSCAPE (Multibody)
For a square hole, you can just enable joint limits. For a round (or other shaped) hole, you place a planar joint at connecti...

1 month ago | 0

Answered
In simscape vehicle template, body is not getting apllied to truck amandla (3axle) configuration. It is showing errors, due to which I can't configure vehicle model
Hi Ameya - that is a bug in the UI, thank you for catching it. It is passing the wrong argument to sm_car_vehcfg_setBody(). ...

1 month ago | 0

Answered
Simscape Multibody Link exports all STEP files in grey color
Check carefully how the colors are assigned to the parts in SolidWorks. Even if the part appears to have a color, if the color ...

1 month ago | 0

| accepted

Answered
Possibility to run Simscape Multibody model without Simscape Multibody license using Restricted Mode
Hi Steven, Can you share the model? I can think of a few things: There are MATLAB commands in the PostLoadFcn or in a mask ...

1 month ago | 0

Answered
Singularity error encountered when calculating inverse dynamics of a elastic joint.
Hi Ryan, The model as provided was missing the stiffness and damping in the Internal Mechanics settings of the Torsional elasic...

2 months ago | 0

Answered
Simscape Cable System with Non-Rotating Pulley
Hi Federico, The Pulley block does not permit slip between the cable and the pulley. You can approximate the friction of the c...

2 months ago | 1

Answered
Simulink hangs once simulation is complete
Hi Graham, I could not reproduce the behavior you were seeing. It does appear, however, that you are not connecting all output...

2 months ago | 0

Answered
singularity error in solution
The diagnostic indicates you have a degree of freedom with no inertia associated with it. If you can post the model we can diag...

2 months ago | 0

Answered
How can I create a martian terrain environment to simulate the performance of a rover suspension in MATLAB?
Uneven terrain can be modeled using the new Grid Surface block in R2021b In R2021b you will need to model your wheels using the...

2 months ago | 1

Load more