Respondida
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...

más de 8 años hace | 1

| aceptada

Respondida
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....

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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.

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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 ...

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

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

más de 8 años hace | 1

| aceptada

Respondida
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() ...

más de 8 años hace | 1

| aceptada

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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 ...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 1

| aceptada

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 0

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

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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)= ...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

Respondida
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...

más de 8 años hace | 0

| aceptada

Respondida
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...

más de 8 años hace | 1

| aceptada

Respondida
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...

más de 8 años hace | 0