Answered
Joint force sensing in Simscape not giving the same results as the equations
There is a problem with the Simulink-PS Converter (the one below the revolute joint). You provide the position signal but not th...

8 years ago | 1

| accepted

Answered
SimMechanics: Is it wrong to use joint Internal Mechanics Instead of a Spring Damper Force Block?
There is nothing wrong with using the joint internal mechanics. In this case, you do not need the Spring and Damper Force block....

8 years ago | 0

Answered
How can I implement contact between two solid objects in SimMechanics 2.0
You can connect the solid to a translational hard stop from the foundation domain. Examples of how to interface Simscape Multibo...

8 years ago | 0

Answered
How can I make my antenna track a fixed point in the world in simmechanics?
Try the following # Add a rigid transform block from the world frame to the point that you want to track. # Connect the base...

8 years ago | 0

Answered
How to send COG from Simmechanics to workspace
Use a Transform Sensor block to measure the absolute coordinates of a Solid block with respect to the World frame.

8 years ago | 0

Answered
how can I make a beam tangent to a moving axis?
# Add a prismatic joint that has its z axis aligned with the beam. # Add a rigid transform that translate orthogonal to the bea...

8 years ago | 0

Answered
Optimization with infinite constraints
1) Augment your parameter vector X with a. Xaug = [X; a]; 2) Define a-b(x,a) < 0 as a nonlinear constraint. 3) Defin...

8 years ago | 0

Answered
bug in fitcecoc() help --> predict function error
main2a1 Error using classreg.learning.impl.CompactSVMImpl/score (line 62) You must pass X as a matrix with 4 columns. -> Ch...

8 years ago | 0

Answered
can multibody models be used alongwith simscape electronics models??
Yes it is possible. Have a look at the demo file multibody_to_accelerometer.zip in <https://www.mathworks.com/matlabcentral/answ...

8 years ago | 0

Answered
Finding points of zero slope from 3D function
To find the solution, you search the x and y for which the partial derivatives are null. This is tricky for an automated solver ...

8 years ago | 0

| accepted

Answered
Hai. I want to simulate a 3D freely falling rigid body which has its c.g off-centred. Can you help me out how to proceed.
Create a Simscape Multibody model. Creates a new solid. Open the solid properties. Go to Inertia. Set type to "Custom". In the C...

8 years ago | 0

Answered
How to write a vector in the form of the product of a matrix and a vector in matlab
This is how you would calculate A B = sym('B', [9 1]); x = sym('x', [10 1]); A = sym('A', [9 10]); sol = s...

8 years ago | 0

Answered
Equation Manipulation in MuPad
Use the <https://www.mathworks.com/help/symbolic/mupad_ref/expand.html expand>() function.

8 years ago | 1

| accepted

Answered
Behavior of subs() function in Symbolic Math Toolbox
You have to define a and b as 2x2 symbolic matrices. Also, do not put the variables aM and bM into quotes when using subs() ...

8 years ago | 1

| accepted

Answered
what is the input signal type and output signal type for accelerometer block in simscape electronics?
The input is an element from the mechanical translational domain (foundation domain), element of which you want to measure the a...

8 years ago | 0

| accepted

Answered
Wheel assembly rolling down stairs with contact library
The Sphere to Plane Contact Force (3D) block models a force normal to the contact plane, active only when the projection of the ...

8 years ago | 0

Answered
How to use accelerometer block from simscape electronics?
The accelerometer bloc must be connected to an element from the mechanical translational domain (foundation library). The accel...

8 years ago | 1

| accepted

Answered
Is it possible to model air/fluid density in a simscape model?
Simscape Multibody (Sim Mechanics) does not model the environment around your system, except for the gravity acceleration. To i...

8 years ago | 0

| accepted

Answered
Using 'solve' function with variables:
Replace X = [x(t),dx(t),ddx(t),th(t),dth(t)]; X_ = [x_,dx_,th_,ddx_,dth_]; with X = [x(t),dx(t),ddx(t),th(t),dth...

8 years ago | 0

Answered
Way to disable masses on SimMechanics?
You cannot disable masses in Simscape Multibody (SimMechanics). To accelerate your simulation you might try the following: * ...

8 years ago | 0

| accepted

Answered
How to limit angle rotation of revolute jointe using Angle constraint
The angle constraint imposes a constant angle between two reference frames. Its purpose is not to limit the rotation range. Y...

8 years ago | 0

Answered
how to build a constraint for a cam builded in solidworks
Use the Point On Curve constraint to model a cam and follower. <https://www.mathworks.com/examples/simmechanics/mw/sm_product...

8 years ago | 0

Answered
how to connect lead screw joint with translational hard stop
You can connect a lead screw joint from Simscape Multibody to a translational hard stop from Simscape foundation library. Have a...

8 years ago | 0

| accepted

Answered
Unexpected behaviour of symbolic substitution
\\\n is just a line break. This happens when the formula being displayed is very long. This is just a command to tell a text ed...

8 years ago | 0

| accepted

Answered
Please help me with my code ( linear regression)
The error message means that you are trying to subtract two variables with incompatible sizes. This occurs because size(beta)= ...

8 years ago | 0

Answered
Re-write MPC cost function to QP formulation
J and f are not equal because of the constant term in J. If you take the Taylor expansion of J, you obtain: J == J(z=0) + gra...

8 years ago | 0

Answered
Solve always returns 0x1 sym results for a non linear system of equations, symbolic toolbox
Solve always returns 0x1 because your equations are not compatible. To demonstrate if, solve the first and second equations with...

8 years ago | 0

| accepted

Answered
How to generate a function from x-y vectors?
You question is not very clear, so I will try to guess what you are trying to do. If you want to define a purely symbolic fun...

8 years ago | 1

| accepted

Answered
expression rearranging using symbolic math toolbox
You can isolate the polynomial coefficients in Z this way: [N, D] = numden(H_S); coefsN = coeffs(N, Z); coefsD = coef...

8 years ago | 0