Submitted


Quaternions to Euler angles conversion
Convert quaternions to Euler angles using Z-Y-X rotation sequence

5 years ago | 1 download |

0.0 / 5

Answered
Sum of matrix signals in Simulink
Something wrong with the dB that comes in from Inport 2. The picture shows Inport 2 has a dimension of 1 instead of 5.

5 years ago | 0

Answered
Processing 2D into 3D matrix
You need to change the following statement x = 0:1:11 x has 12 elements but the modeshapes array only allows 11 elements in th...

5 years ago | 0

Answered
How can I produce a Torque signal to activate an External Force and Torque simulink block?
Connect a Solid to a Revolute joint. Change the Actuation-Torque property of the Revolute Joint to Provided by Input. You then a...

5 years ago | 0

Answered
How can I model a Whitworth quick return mechanism in SimScape?
Download this model and take a look: https://www.mathworks.com/matlabcentral/fileexchange/74465-whitworth-quick-return-mechanism...

5 years ago | 0

| accepted

Submitted


Whitworth Quick Return Mechanism
Simulate Whitworth Quick Return Mechanism with Simscape Multibody

5 years ago | 2 downloads |

0.0 / 5

Answered
Gauss Siedel code not working
Put three dots (...) after the = at line 20 to signal that line 21 is the continuation of line 20.

5 years ago | 0

Answered
Arduino Encoder Application with Simulink Problem
You can use Simulink Delay block which store you last data. Type delay in the search box in the Simulink Library Browser to loca...

6 years ago | 1

| accepted

Submitted


CRC-16
A function to generate CRC-16 (16-bit Cyclic Redundancy Check)

6 years ago | 6 downloads |

5.0 / 5

Answered
How do I select only 100 images in a folder of 200 images, according to a list of 100 different names ?
Use the folllwoing command to get a structure that contains file information listing = dir('*.jpg'); Use the folllwoing comman...

6 years ago | 0

Answered
How to take mean of each row/column of matrix with while loop
You need to update i and j (add 1 to them) at the end of each while loop.

6 years ago | 0

| accepted

Answered
Help writing this integral
Use integral or trapz to integrate, then take the log. You need to find out the expression for p and the integration limits.

6 years ago | 0

Answered
Hello, I am getting this error. Can anyone please help me solving it? Thanks
I guess that the temperature units are 'K', 'degC', 'degF', etc.

6 years ago | 0

Answered
Difference between Simscape and Simulink
Simulink uses block diagram approach. The signal flow is unidirection. Simscape uses physical modeling approach. The signal flow...

6 years ago | 1

Answered
How do you add physical signal lines programmatically?
use h1 = get_param('mymodel/mySubsystem/C_1','PortHandles'); to get the port handles. Use add_line to draw line between the hand...

6 years ago | 0

Answered
User-defined MATLAB function block in Simulink/Simscape
use a statement like z = t / k; % don't use x to get the argument for the table lookup. Then use interp1(x,y,z) to find your ...

6 years ago | 1

| accepted

Answered
modelling in matlab of differential equation
you need an equation for dhw/dt, then use a matlab ode solver to solve the equations. see https://www.mathworks.com/help/matlab/...

6 years ago | 0

Answered
step response of Linear parameter varying model's response different from the step response of original non linear plant
You probably didn't specify the "State derivative/update offset" correctly. You need to uncheck the "Assume equilibrium operatin...

6 years ago | 0

Answered
Offset ticks and gridlines
Use xticks to place the ticks at the left of each group, e,g,, xticks([0.5 1.5 2.5]). You can use xt = xticks to get the coordn...

6 years ago | 0

Answered
Vector between vectors in intervals
vec1 = [-0.0345;0.9984;-0.0447]; angle = 5*pi/180; % angle of rotation in rad v = vec1 + tan(angle)*vec2; % length of ve...

6 years ago | 0

| accepted

Answered
xlsreaderror: "Unable to resolve the name (filename)"
Change the statement to data_final = xlsread('Raw_data_2.xls');

6 years ago | 2

Answered
How to do animation properly
Draw the cylinder first. Use the "rectangle" command in a loop to draw the piston, e.g., rectangle('position',[x,y,w,h],'FaceC...

6 years ago | 0

| accepted

Answered
how to subtract/divide corresponding rows and columns of two tables?
put the tables in to two variables of matrices. Use element-wise operation: ./ or .*

6 years ago | 0

Answered
coverting fortran to matlab
The following statements are wronng h(i,j) = ( h(i-1,j) + h(i+1,j) + h(i,j-1) + h(i,j+1)/4) ; .. e = abs(h(i,j)) ...

6 years ago | 0

Question


Find the help for sim command in the MPC Toolbox
The sim command can be used to simulate Simulink models or MPC objects. How can I open the Help Browser from the command line fo...

6 years ago | 1 answer | 0

1

answer

Answered
About the correct connection method of SimscapeMultibody and Simscape block in the calculation of inverse dynamics.
You input torque to the revolute joint block in forward dynamics. Doucle click the block. Expand Actuation and set the Torque to...

6 years ago | 0

Answered
Connect multiple joints to one solid
You should use a revolute joint between cylinder C and cyliner A. Use another revolute joint between the other end of cylinder C...

6 years ago | 0

Answered
Can anyone please tell me in which release i find this example ?
Probably R2019a and newer. R2018b doesn't have the example.

6 years ago | 0

Answered
How to determine if my equation is equal to, less that or more then 0?
The result of sqrt((b^2/(4*a^2))-(c/a)) is a complex number. You can't compare it with 0 (a real number) The formula for dampin...

6 years ago | 0

| accepted

Answered
how to solve this ?
use s1 = a1*sin(w1*t+phi1), where w1=2*pi*f1 and t is time vector to generate signal 1. Do the the same for signal 2 and 3 and a...

6 years ago | 0

| accepted

Load more