Risposto

Algorithm for rlocus (internal code of rlocus)

Hi @Pushkar K You can browse through the folders, or you can type the following to view the code: edit rlocus

Algorithm for rlocus (internal code of rlocus)

Hi @Pushkar K You can browse through the folders, or you can type the following to view the code: edit rlocus

circa 2 mesi fa | 1

Risposto

How to solve nonlinear equation?

Hi @GUANGHE HUO The nonlinear matrix ODE with time-varying stiffness matrix K can be transformed into a nonlinear state-space m...

How to solve nonlinear equation?

Hi @GUANGHE HUO The nonlinear matrix ODE with time-varying stiffness matrix K can be transformed into a nonlinear state-space m...

circa 2 mesi fa | 0

| accettato

Risposto

How can i calculate the PI controller gains from my plant transfer function

Hi @Mads Olesen It appears that your intuition is right. The P-only controller is sufficient because the steady-state error is ...

How can i calculate the PI controller gains from my plant transfer function

Hi @Mads Olesen It appears that your intuition is right. The P-only controller is sufficient because the steady-state error is ...

circa 2 mesi fa | 0

Risposto

I've tried to simulate a catalytic reactor by solving 5 second order differential non-linear equations. I've used 'odetovectorfield' which I'm not pretty sure about that

Hi @Mahdi The system can be run now. However, the simulation shows that the system blows up, which may indicate that the system...

I've tried to simulate a catalytic reactor by solving 5 second order differential non-linear equations. I've used 'odetovectorfield' which I'm not pretty sure about that

Hi @Mahdi The system can be run now. However, the simulation shows that the system blows up, which may indicate that the system...

circa 2 mesi fa | 0

Risposto

Gyroscope simulation using State space

Hi @Saleem Jallet, You didn't provide the transfer function of the gyroscope with sensor dynamics. In short, you need to prov...

Gyroscope simulation using State space

Hi @Saleem Jallet, You didn't provide the transfer function of the gyroscope with sensor dynamics. In short, you need to prov...

circa 2 mesi fa | 0

| accettato

Risposto

pendulum with air resistance in simulink

Hi @Jordi van Selm Yes, your model is correct. In fact, the pendulum equation can be rewritten as a system of 1st-order ODEs: ...

pendulum with air resistance in simulink

Hi @Jordi van Selm Yes, your model is correct. In fact, the pendulum equation can be rewritten as a system of 1st-order ODEs: ...

circa 2 mesi fa | 0

| accettato

Risposto

Plot of three coupled oscillator.

Hi @Haya Ali I don't know what oscillators are since you didn't provide the math equations to compare with. However, on the pro...

Plot of three coupled oscillator.

Hi @Haya Ali I don't know what oscillators are since you didn't provide the math equations to compare with. However, on the pro...

circa 2 mesi fa | 0

| accettato

Risposto

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

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

circa 2 mesi fa | 0

Risposto

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

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

circa 2 mesi fa | 0

| accettato

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

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

circa 2 mesi 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 ...

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

circa 2 mesi 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...

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

circa 2 mesi 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 ...

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

circa 2 mesi 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; ...

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

circa 2 mesi 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-...

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

circa 2 mesi fa | 0

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

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

circa 2 mesi fa | 0

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

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

circa 2 mesi 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 ...

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

circa 2 mesi 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...

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

circa 2 mesi fa | 1

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

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

circa 2 mesi fa | 0

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

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

circa 2 mesi fa | 0

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

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

circa 2 mesi 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...

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

circa 2 mesi fa | 1

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

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

2 mesi fa | 2

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

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

2 mesi fa | 1

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

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

2 mesi fa | 0

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

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

2 mesi fa | 2

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

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

2 mesi fa | 1

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

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

2 mesi fa | 0

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

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

2 mesi fa | 1

| accettato