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

oltre 3 anni fa | 1

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 1

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 2

| accettato

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

oltre 3 anni fa | 1

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 2

| accettato

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

oltre 3 anni fa | 3

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

oltre 3 anni fa | 2

| accettato

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 3

| accettato

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

oltre 3 anni fa | 2

| accettato

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

oltre 3 anni fa | 2

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

oltre 3 anni fa | 3

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 1

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 1

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 2

| accettato

Risposto
Derivative of state '3' is not finite.
Hi @younwook song The system is unstable. It is rather difficult to decipher the dynamics from the displayed block diagram and ...

oltre 3 anni fa | 0

Risposto
I want help solving differential equations
Hi @kubel Follow the example in the dsolve() documentation https://www.mathworks.com/help/symbolic/dsolve.html syms x(t) eq...

oltre 3 anni fa | 1

| accettato

Carica altro