Answered

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

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

10 månader ago | 0

Answered

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

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

10 månader ago | 0

Answered

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

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

12 månader ago | 0

Answered

3D matrix with equation

does mean ? You can calculate the result using three loops on i, j, and l.

3D matrix with equation

does mean ? You can calculate the result using three loops on i, j, and l.

12 månader ago | 0

Answered

How to interpolate when we have two different sizes

temps_B and B have different size. They need to be the same size.

How to interpolate when we have two different sizes

temps_B and B have different size. They need to be the same size.

12 månader 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...

ungefär ett år ago | 1 answer | 0

Answered

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

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

ungefär ett år ago | 0

Answered

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.

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.

ungefär ett år 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 ...

ungefär ett år ago | 0 answers | 0

Answered

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

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

ungefär ett år ago | 0

Answered

If loop with character and two conditions

Use strcmp(t_adf_fdiff.reject,t_kpss_fdiff.reject) insteafd of t_adf_fdiff.reject == t_kpss_fdiff.reject. The two if statemen...

If loop with character and two conditions

Use strcmp(t_adf_fdiff.reject,t_kpss_fdiff.reject) insteafd of t_adf_fdiff.reject == t_kpss_fdiff.reject. The two if statemen...

ungefär ett år ago | 0

Answered

How can I print the heatmap as grayscale?

heatmap(A) colormap(gray)

How can I print the heatmap as grayscale?

heatmap(A) colormap(gray)

ungefär ett år ago | 1

| accepted

Answered

solving equations with trigonometric functions

format long % show more digits double(S1.theta3) double(S1.theta4) format % back to the default format

solving equations with trigonometric functions

format long % show more digits double(S1.theta3) double(S1.theta4) format % back to the default format

ungefär ett år ago | 0

Answered

How can I apply the same force on multiple objects in Simscape Mulitbody?

The problem is not with the force block. The problem is caused by incorrect configuration of the components, i.e., the component...

How can I apply the same force on multiple objects in Simscape Mulitbody?

The problem is not with the force block. The problem is caused by incorrect configuration of the components, i.e., the component...

ungefär ett år ago | 0

Question

Split Simulink 3D viewer into multiple panes

Is it possible to split the Simulink 3D Viewer into multiple panes? I can split the display pane of the 3D World Editor into mul...

ungefär ett år ago | 0 answers | 0

Question

How to add a ROUTE node in the 3D world?

How can I add a ROUTE node in the 3D world as hilighted in the screen shot? Thanks.

ungefär ett år ago | 0 answers | 0

Answered

I have a . Mat file of battery model how can i create simulink model from it

Mat file contain variables and their values. You can load it to the workspace. The file most likely contains test data. You need...

I have a . Mat file of battery model how can i create simulink model from it

Mat file contain variables and their values. You can load it to the workspace. The file most likely contains test data. You need...

ungefär ett år ago | 0

| accepted

Answered

Unable to find base block in simscape multibody

What do you mean by Base Block? You can find a World Frame block in the Frames and Transforms sub-category. The "Base Block" may...

Unable to find base block in simscape multibody

What do you mean by Base Block? You can find a World Frame block in the Frames and Transforms sub-category. The "Base Block" may...

ungefär ett år ago | 0

Answered

How can i obtain the final value of x and y?

Use sol = solve(prob) to solve the problem. The answer is in the sol object. You can also use sol.x and sol.y. Note that you may...

How can i obtain the final value of x and y?

Use sol = solve(prob) to solve the problem. The answer is in the sol object. You can also use sol.x and sol.y. Note that you may...

ungefär ett år ago | 0

| accepted

Answered

White background from "Print to Figure" in Simulink scope

I found that the background color is same as the scope for the figure generated from the "Print to Figure" command in the scope ...

White background from "Print to Figure" in Simulink scope

I found that the background color is same as the scope for the figure generated from the "Print to Figure" command in the scope ...

mer än ett år ago | 0

| accepted

Question

White background from "Print to Figure" in Simulink scope

The "Print to Figure" menu command in a Simulink scope generates a figure with a black background. How can I change the backgrou...

mer än ett år ago | 1 answer | 0

Answered

Replacing a for loop with matrix multiplication

Try x'*inv(SIG)*x. Matlab can directly handle vectors and matrices.

Replacing a for loop with matrix multiplication

Try x'*inv(SIG)*x. Matlab can directly handle vectors and matrices.

mer än ett år ago | 0

Answered

CONVERTING MATLAB SIMULINK MODEL INTO Programming

Try the Simulink coder.

CONVERTING MATLAB SIMULINK MODEL INTO Programming

Try the Simulink coder.

mer än ett år ago | 0

Answered

How do I store data that meet conditions of an if statement

You over wrote the variable data. One soluation is to change data to data(i).

How do I store data that meet conditions of an if statement

You over wrote the variable data. One soluation is to change data to data(i).

mer än ett år ago | 0

Answered

Impedance versus frequency plot in Simscape Simulink

Bode plot is the gain and phase of the impedance. Gain is the magnitude. Phase is the angle. You can use the magnitude and angle...

Impedance versus frequency plot in Simscape Simulink

Bode plot is the gain and phase of the impedance. Gain is the magnitude. Phase is the angle. You can use the magnitude and angle...

mer än ett år ago | 0

Question

Simulink Pixhawk Support Package System Requirements

What is the MINIMUM system requirement to generate code from Simulink and download to a Pixhwak in R2020b? Will I be able to jus...

mer än ett år ago | 2 answers | 0

Submitted

Euler angles to axis-angle vector conversion for Simulink 3D

Calculate the corresponding axis-angle vector for given Euler angles

mer än ett år ago | 5 downloads |

Answered

How can I convert a double variable to uint8 and convert it back to double?

Very interesting. In R2019b, I got >> d = 163.0 d = 163 >> d == double(uint8(d)) ans = logical 1 >> d == (uint8(...

How can I convert a double variable to uint8 and convert it back to double?

Very interesting. In R2019b, I got >> d = 163.0 d = 163 >> d == double(uint8(d)) ans = logical 1 >> d == (uint8(...

mer än ett år ago | 0

Answered

how to use a revolute joint to rotate a body around it's local frame x axis not the global frame

Insert a rigid transform between the revolute joint and the object. Align the z-axis of the joint to the x-axis of the object (e...

how to use a revolute joint to rotate a body around it's local frame x axis not the global frame

Insert a rigid transform between the revolute joint and the object. Align the z-axis of the joint to the x-axis of the object (e...

mer än ett år ago | 1