Answered
how to use simulink block
You need 5 blocks and connect them in this sequence from the Left to the Right. Begin with the *Clock block* and that's the ...

4 years ago | 0

Answered
sigmoid pid equation in matlab
Hi Shah I'm curious to to see how your designed Kp looks like. What is the pid equation? Edit: Kp is a nonlinear proportional...

4 years ago | 1

| accepted

Answered
compensator with pole in RHS of s-plane
Basim, you should run a few more simulations under different conditions to verify if the approach works. After that, you should ...

4 years ago | 0

Answered
Solve a numerical function
Hi Issam From the advice of Mr. Roberson, you can create 3 equations from the data points: 691.5802655 = Ge + (G*0.01093...

4 years ago | 0

Answered
ode45,ODE23 , force is not a time dependent function
Hi Gloria You can load data on Excel to Workspace and then use the function interp1(t,Fy,Ts) to interpolate the data set (t,...

4 years ago | 1

Answered
Solving a Simulink Function with Algebraic Loop
Hi @Taha Batur Topsakal This article explains about the Algebraic Loop Concepts: https://www.mathworks.com/help/simulink/ug/al...

4 years ago | 0

Answered
Solve a system of 4 non linear equations with symbolic expressions
Hi @Nordine Bouchelia You can follow the examples in https://www.mathworks.com/help/optim/ug/fsolve.html to create a function...

4 years ago | 1

Answered
How do I plot time vs. velocity with a matrix in Simulink ?
@Nuri Efe TATLI In MATLAB, if a matrix M is given, then this would be: t = M(:,1); % 1st column V = M(:,2); % 2nd col...

4 years ago | 2

| accepted

Answered
Designing an Observer - Control System
It's a 5th-order system and by choosing relatively large poles (almost 10,000 times), the computation becomes numerically sensit...

4 years ago | 0

Answered
Solve equation system with ode45
Hi Laura First thing first, there are 4 state variables which can be defined (on a piece of paper) by x(t) = z(1) ...

4 years ago | 0

Answered
How do I rewrite this transfer function into the form shown below
Hi @Eden Pfanner You can see the following example to learn how to convert a model from one representation to another using the...

4 years ago | 1

| accepted

Answered
Dear esteem researchers, please I need help on how to simulate wind gust disturbance effect on quad-copter using simulink...?
Hi @ALABA PHILIP OPAYEMI I think this is how you connect the Sine Wave block (external disturbance) to the Quadcopter system (S...

4 years ago | 2

| accepted

Answered
How can I sum two plots that don´t have the same number of elements?
I think one of the methods is to perform data interpolation using interp1 so that both curves are interpolated at the same point...

4 years ago | 2

| accepted

Answered
How to collect and store the coefficient of symbolic differential equation ?
Hi Akash, You can try using coeffs and see if it works for you. Examples are shown in the link. https://www.mathworks.co...

4 years ago | 0

Answered
Have latex (bold) and variable in legend of a figure
Hi @Miraboreasu I think this should work: legend({'$\left[\frac{t v_{p}}{r_{well}}\right] \left(\Pi_{1}\right)$'}, 'Interprete...

4 years ago | 1

Answered
Only positive sawtooth wave using simulink
Hi @Logan Das Using the Repeating Seqence Block in this case is much easier in this case, without mental calculations on the am...

4 years ago | 2

| accepted

Answered
Not able to find fzero
Hi @Dhawal Beohar Guess the problem that you want to solve is a complex-valued function. function y = difference(u) % param...

4 years ago | 1

Answered
system of linear differential equation with Runge Kutta Method 4 order
@Diksha Gautam You can follow the examples to use ode45(): https://www.mathworks.com/help/matlab/ref/ode45.html % constants ...

4 years ago | 1

| accepted

Answered
How to plot a function
@Nouha Amine You can do something like this: x = 0.1:0.01:10; y1 = x.^(-2.9-0.1); y2 = x.^(-2.9+0.1); plot(x, y1, x, y2) y...

4 years ago | 1

| accepted

Answered
PID tuning Gain Scheduling Technique for Temperature Control System
Hi @Isyraf Izuddin Thanks for showing the model of the furnace system. First things first, perform a basic analysis to understa...

4 years ago | 2

| accepted

Answered
Why do the eul2quat and quaternion functions differ on the calculated results?
Hi @cui I remember that previously we have talked about that Euler angles and quaternion are not unique. You need to check the ...

4 years ago | 1

Answered
I have this code how can I do it in simpsons 1/3 and 3/8 rule on matlab
Hi @Gura Gwar Can't remember the Simpson's rules (since you didn't provide the math). But I guess you can find the relationship...

4 years ago | 1

| accepted

Answered
ODE friction-vibration system: unable to meet integration tolerances
Hi @Kasidit Suwannagarn Edit: Replaced the previous flawed answer with the system analysis. % constants mp = 0.0075; cp ...

4 years ago | 0

Answered
How to plot a line with specific line slope ?
But you can only determine the slope if you know the coordinates of the adjacent points. Are you trying to plot the vector of...

4 years ago | 1

Answered
need help with gauss elimination
Hi @Matt Thomas Can you show the Gaussian elimination method in pen and paper? This is not Gauss method, but requires the Inve...

4 years ago | 0

Answered
How can I add a Braking System to my Project ?
Hi @Abdelmoughit Miftah It is relatively easy to ADD an existing system into a Simulink file. Find someone who has the Simulin...

4 years ago | 0

Answered
Motion simulator using simulink
Hi @Wajih IMLIKI You multiply v with v, and then you take a square root of v²? In order to get the absolute value of v? By the ...

4 years ago | 0

Answered
PID not achieving required results
Hi @Desislava Petkova The Plant (a 3rd-order system) settles at around 123 seconds. s = tf('s'); Gp = 0.047/(s^3 + 3.88*s^2 ...

4 years ago | 2

| accepted

Answered
WhatsApp can i do to plot the fonction below respect to the variables x and t
Hi @Thomas TJOCK-MBAGA Are you trying to plot something like this? C = []; X = linspace(0,1,25); T = linspace(0,10,250); fo...

4 years ago | 1

| accepted

Answered
How to calculate differential equation with trigonometric function?
With the given ODE function dydx = odefcn(x, y) fcn = 2*x/y + (x^2)*(y^2)*cos(y); dydx = - 1/fcn; end you can...

4 years ago | 1

Load more