已回答
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...

7 years 前 | 1

| 已接受

已回答
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....

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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.

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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 ...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

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

7 years 前 | 1

| 已接受

已回答
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() ...

7 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 0

| 已接受

已回答
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 ...

7 years 前 | 0

已回答
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...

7 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

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

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 0

| 已接受

已回答
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)= ...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 0