Answered
Sinusodial Wave for PID controller
Hi @Juan Barragan After simplifying the expression, what does mean? If you want to simulate the system in transfer functions,...

3 years ago | 0

Answered
segway simulation on Inclined plane
Hi @Christopher You can probably find about the modeling knowledge in this article, "A Control Method of Inclined Inverted Pend...

3 years ago | 1

| accepted

Answered
calculate approximate derivative in matlab
Hi @Minh Not sure if you are looking for this syms x y = log(x) dydx = diff(y) However, please check the data in the Tab...

3 years ago | 1

Answered
Solving non linear ode using ode45
Hi @Shubham, I don't know how you derived this, but after rearranging the equation you can see the state variable is at ...

3 years ago | 0

Answered
Export transfer functions from Control System Design App
Hi @Gili Check if you can click <Export> and able to select the desired model LoopTransfer_C from list in the Export Model dial...

3 years ago | 0

Answered
Runge-kutta 4
Hi @Stanley Umeh I requested you to show the mathematics of RK4 so that you can learn about how the algorithm works as well as ...

3 years ago | 0

Answered
How to find the x, y range of values for a multivariable function using optimization?
Hi @Haider, It is probably best to show your professor these plots and asks for guidance. A picture is worth a thousand words; ...

3 years ago | 0

Answered
Adaptive Control Law Design, s-function not working, please help
Hi @Farhan Manzoor Let us know if the following suggestions works. Step 1: In all S-function Blocks, leave the field of the S-...

3 years ago | 1

Answered
For this question, my graph didn't appear anything... Can anyone help me to solve this problem??
Hi @Muhammad Huzayl Rais If you want to plot the function over a region , then you can try something like this. x = linspace(...

3 years ago | 1

| accepted

Answered
unit step disturbance at a time of 40 seconds
Hi @MUHAMED SIDIBEH The closed-loop transfer function for Y(s)/D(s) is given by The following shows how to compute the compa...

3 years ago | 0

Answered
Out of memory when using ode45(@t,x)
Hi @mohammed tifr The desired control torques cannot be integrated directly in and , because the actual torques are delivered ...

3 years ago | 0

Answered
Why integrator output is always zero?
Hi @昕毅 Because the output rises very slowly when the time second. This is the expected result. Note that the y-axis is scal...

3 years ago | 2

| accepted

Answered
Differential Equations with Inputs (Tank Draining Problem)
Hi @Quinlan Connell & @QUINLAN You can also use the real() function to obtain only the Real part of the complex number. % Para...

3 years ago | 1

Answered
Compute the roots of a general nth-degree polynomial
Hi @Jiapeng The following article shows you a few methods to find the roots of a polynomial. https://www.mathworks.com/help/ma...

3 years ago | 1

| accepted

Answered
'Matlab says that the problem is at (t), i want to use ode45
Hi @Eleftherios Guess you probably want to view the Lorenz attractor. [t, x] = ode45(@odefun, [0 100], [1 1 1]); plot3(x(:,1)...

3 years ago | 0

Answered
Matlab R2022a: How to obtain the predicted values given the training and test observations with the neuro-fuzzy method?
Hi @jamal numan "data" was in your evalfis() but the one in the Workspace is "Data". Also, the syntax is now because Input arg...

3 years ago | 2

| accepted

Answered
MATLAB doesn't plot my function
Hi @Pedro Almeida You probably want to plot like this? y = @(x) - sin(x); z = @(x) x.^2; fun = @(x) y(x) - z(x); ...

3 years ago | 3

Answered
Comparisons of numerical solution methods
Hi @Enrico Incardona, Here is the comparison between the solution by ode45 and the solution by Forward_Euler. As mentioned pre...

3 years ago | 2

| accepted

Answered
Error using fmincon Supplied objective function must return a scalar value
HI @SWASTIK SAHOO The error message says that your objective function "myfunc()" must return a scalar value. Perhaps the trapz(...

3 years ago | 1

| accepted

Answered
Second order differential equation with large matrices
Hi @David Togonidze SInce this is a linear system, if you have the Control System Toolbox, then you can manipulate the matrix d...

3 years ago | 3

| accepted

Answered
Control System Steady State Error for VTOL
Hi @Abdul Rahman Alam The transfer function between the error signal and the input signal is defined by where is the clos...

3 years ago | 2

| accepted

Answered
How can i calculate the PI controller gains from my plant transfer function
Hi @Mads Olesen You can try this. But use a small combination pool. From the previous simulations, it seems that Kp has a mor...

3 years ago | 2

Answered
Inputting a time varying equation into system in simulink
Hi @Reed Smith Edit #2: As suggested in my original Answer, you can use the Clock to generated the time t vector, so that you c...

3 years ago | 3

| accepted

Answered
differential equations matlab with 2 equations with changing values dependent on each other
Hi @Brennah Not exactly sure what to do dxe2 = diff(dxe). But from the given ODEs, they can be solved to obtain and . You can...

3 years ago | 0

Answered
how to derivate an equation of x and y without taking any variable constant?
Hi @Ahmed Mujtaba It can be confusing because the math structure of y/1 - x - cos(y) is legitimately interpreted as . Guess y...

3 years ago | 1

Answered
Halley's method
Hi @Vivian Ho It is recommended to show your working and efforts in solving the problem. But if you are having trouble, then yo...

3 years ago | 0

Answered
How to use the matlab to predict the properties price given some observations using fuzzy logic (FL)?
Hi @jamal numan Generally, you need to collect data about the past and current state of the Property Prices in a region and its...

3 years ago | 1

Answered
Lyapunov stability analysis function
Hi @Lydia Abigail Garza Coello As far as I know, there is no built-in function.m in MATLAB for directly performing the Lyapunov...

3 years ago | 1

| accepted

Answered
How to identify negative slope from plot data?
Hi @Michael Tognotti This is just a basic idea for identifying the region of negative slope. Generally, the numerical different...

3 years ago | 0

Answered
How can i calculate the PI controller gains from my plant transfer function
Hi @Mads Olesen Perhaps you can directly insert the PI controller and obtain the closed-loop response. Tune the gains if not go...

3 years ago | 2

| accepted

Load more