Community Profile

# J Chen

Last seen: 5 días ago Active since 2019

All

#### Content Feed

View by

Simscape Multibody, Transform Sensor, quaternion output
Take a look at this: https://www.mathworks.com/matlabcentral/answers/415936-angle-between-2-quaternions

12 días ago | 0

Would it be possible to change the greyscale to a blue scale?
Take a look at the colormap command - https://www.mathworks.com/help/matlab/ref/colormap.html

12 días ago | 0

The following code is not giving errors, but it does not solve the system of equations.
In order to solve a system of equations, the number of equations needs to equal the number of variables. You also need ==0 for t...

alrededor de 1 mes ago | 0

Solving a system of three second order coupled differential equation
Use as states and express the derivatives of the states as functions of the states, e.g., d/dt()=etc.

alrededor de 2 meses ago | 0

Solving ODE with sqrt
If you know how to solve an ODE in Matab, the problem might be negative values for the sqrt().

3 meses ago | 0

how to get eigenvalues and plot it
Use a loop to calculate and store the eigenvalues for each time point. Plot the data outside the loop.

3 meses ago | 0

| accepted

Does Simscape Multibody enable torsion system modeling consisting of 2 or 3 rotating masses / inertias connected by spring and damper elements?
Connect the inertias with revolute joints and specify the spring stiffness and damping coeficient in the joint parameters.

4 meses ago | 0

Singularity error encountered when calculating inverse dynamics of a elastic joint.
Probably better to specify the desired angle at the output port (F port) of the Torsional elastiticity & damping block. You can ...

4 meses ago | 0

Heatmap - how to get the plotted colors
camp = colormap https://www.mathworks.com/help/matlab/ref/colormap.html

5 meses ago | 0

Which Block for Frequency as input signal for a prismatic joint?
You can apply force or impose motion for a Prismatic Joint. Use SImulink blocks to generate the signal you want and feed the sig...

5 meses ago | 0

Extracting natural frequencies and mode shapes from a Simscape Multibody model
You probably can linerarize your Simscape model and calculate the eigenvalues and eigenvectors.

5 meses ago | 0

How to design controller for models in Simscape multibody?
You can use MATLAB 'linearize' command to lineraize Simscape plant models, [sys, ~, info] = linearize(plantModel, opPoint). The ...

6 meses ago | 0

What can I do to import a complete assembly into Multibody if I'm using Fusion 360?
Can you export the model to a CAD software that supports Simscape Multibody Link?

6 meses ago | 0

I want to use variable as an input in a single run.
Try to feed the signal to the 'To Workspace block' directly to other blocks.

6 meses ago | 0

Finding pitch, yaw for a delta three wheeler using simscape or vehicle dynamics blockset
The Vehicle Body block only describes vehicle longitudial dynamics. You need a block that handle lateral dynamics to get roll an...

6 meses ago | 0

how to change simulink matlab (bellow) to code matlab? How do I enter the initial value?
https://www.mathworks.com/help/matlab/ref/ode45.html

6 meses ago | 0

elevator motor modelling code
You need to model the system with a differential equation: . Solve the equation with MATLAB or Simulink for given N(t).

6 meses ago | 0

Contact Forces/Torques for Robotics Applications
The Spatial Contact Force Block will automatically apply the forces to the elements connected to its two ports. You don't need t...

8 meses ago | 0

3D matrix with equation
does mean ? You can calculate the result using three loops on i, j, and l.

8 meses ago | 0

How to interpolate when we have two different sizes
temps_B and B have different size. They need to be the same size.

8 meses ago | 0

Question

Separate Simulink block name into several lines
How can I separate the name of a Simulink block into serveral lines in R2020b? The Retuen key doesn't seem to work in this new r...

8 meses ago | 1 answer | 0

### 1

How can I get the value by choosing 't' and 'x'? ,How should I set the graph range?
Move the plot command outside the loop. Store the calculation at each time step in a buffer. For example: hist = nan(n,length(t...

9 meses ago | 0

Log simulink (variable step) data with with one sample time!
Uee the To Workspace block in the Simulink Sink category and specify the Sample time in the block parameters.

9 meses ago | 1

Question

Dispaly numbers in Simscape Mechanics Explorer or Simulink 3D animation viewer
How can I dispaly numbers in a Simscape Mechanics Explorer? The numbers need to be displayed in the Mechanics Explorer in order ...

9 meses ago | 0 answers | 0

### 0

I can't plot this 3D matrix despite looking at other examples
The matrix has 3 independent variables. 3D plots using surf can only have 2 independent variable. You need to general 4 3D figur...

9 meses ago | 0

If loop with character and two conditions

9 meses ago | 0

How can I print the heatmap as grayscale?
heatmap(A) colormap(gray)

9 meses ago | 1

| accepted

solving equations with trigonometric functions
format long % show more digits double(S1.theta3) double(S1.theta4) format % back to the default format

10 meses ago | 0