Réponse apportée
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...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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....

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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.

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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 ...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
Equation Manipulation in MuPad
Use the <https://www.mathworks.com/help/symbolic/mupad_ref/expand.html expand>() function.

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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() ...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

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

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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)= ...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 8 ans il y a | 0