Answered
"feedback" function example in Matlab documentation doesn't seem to work?
Hi @Mark Using the 'feedback()' command to compute the closed-loop model with the specified input and output connections doesn'...

2 years ago | 0

Answered
Plotting Damped Nonlinear Oscillator
Hi @Athanasios Paraskevopoulos You could have solved the system's equations to determine the critical points of the Nonlinear ...

2 years ago | 1

| accepted

Answered
Using ode45 to develop a PID controller to reduce transverse vibrations in a rotating beam
Hi @Samuel Adshead With this approach, you can utilize ode45 solver to simulate a PID-controlled rotating beam and plot the ste...

2 years ago | 0

Answered
Neuro-Fuzzy GMDH
Hi @Jahetbe If they don't respond to you, don't worry too much. You can start writing the code gradually on your own. For ins...

2 years ago | 0

Answered
System of 4 ODEs solver
Hi @Duong Quang Chi If 'dsolve' cannot find explicit solutions for , , , and , we can use 'ode45' to numerically solve the ODEs...

2 years ago | 0

| accepted

Answered
how to implement pso algoritm
Hi @ali I would like to mention an example featuring a Staircase model, which can be found in the provided link. The goal is to...

2 years ago | 0

Answered
Why is my variable being changed without assignment
Hi @Robyn Galliers Considering the given 1st-order differential equation with the parameters solved by @Sulaymon Eshkabilov, ar...

2 years ago | 1

| accepted

Answered
Why is the scope of output of Liquid level system here showing a straight line and not an exponential like a step?
Hi @Rubayet The liquid level system can be represented as a first-order transfer function. Consequently, it will display an exp...

2 years ago | 0

Answered
is there a tool to calculate and plot voltage stability curves
Hi @Rashed HD, @Peerapon Could you describe the stability properties of the electrical system that you are seeking? Convention...

2 years ago | 0

Answered
Solving a System of Nonlinear Equations n Times With Different Values
Hi @Rocky When fsolve calls the system function g(x), it consistently executes the same number of loops until n reaches 10, and...

2 years ago | 1

| accepted

Answered
Why does my Transfer function overshoots
Hi @Berker I believe the design objective is to determine the gain from the root locus such that the response avoids exhibiting...

2 years ago | 0

Answered
how to fast simulink model in matlab when fuzzy controller is added
In general, significantly *reducing the number of fuzzy rules* can lead to faster simulation runs. If you are unable to or unsur...

2 years ago | 0

Answered
I am trying to solve a system of three differential equations simultaneously
Hi @Erin Summerlin-Donofrio This is merely a test. From the perspective of a first-order system, the variable serves as an inv...

2 years ago | 0

Answered
How to solve singular matrix?
Hi @YING CHIH Hear is another stabilizing input vector signal. uExtIn = []; % No external Input signal tspan = [...

2 years ago | 0

Answered
How to solve singular matrix?
Hi @YING CHIH The Plant system itself does not have any division-by-zero singularity issues. However, the simulation is termina...

2 years ago | 1

| accepted

Answered
How to use LQR for setpoint tracking?
Hi @Pedro Carvalho Your code appears to be error-free. However, the control action you implemented differs from the error-base...

2 years ago | 0

| accepted

Answered
Not enough input arguments.
I managed to replicate the error message by leaving the argument empty. Therefore, you should provide a Fahrenheit value for it,...

2 years ago | 0

Answered
derivative of two matrices 2 by 2
If the four elements in Matrix P do not involve any variables defined in Matrix F, then taking the derivative of the four elemen...

2 years ago | 0

| accepted

Answered
How to model PID with "derivative on process value"
Hi @Kurt If you wish to utilize the Simulink PID Controller block while avoiding derivative kick, you can consider the followin...

2 years ago | 0

| accepted

Answered
How can I generate in Simulink a block that has time delay in only one coefficient on the numerator of the transfer function?
Hi @EVANGELOS I am of the opinion that your approach is effective because it yields the same result as in MATLAB. G1 = tf([1 ...

2 years ago | 0

| accepted

Answered
I am trying to solve the system of two linear differential equations and create a phase diagram to asses the stability of the system.
Hi @Chris Herdelin If you are referring to the phase diagram as the 2-D phase plane plot, you can use a special output function...

2 years ago | 1

| accepted

Answered
Problem with pidtune function
Hi @Collin Lightfoot According to the documentation, if the tuning algorithm can achieve satisfactory performance and robustnes...

2 years ago | 0

| accepted

Answered
i am trying to find the lqr controller system Transfer function, but getting error as "Arrays have incompatible sizes for this operation."
Hi @Senthilnathan A If fast-rising spike and the overshoot are undesired and you would like to eliminate it, I suggest adding a...

2 years ago | 1

Answered
i am trying to find the lqr controller system Transfer function, but getting error as "Arrays have incompatible sizes for this operation."
Hi @Senthilnathan A I have marked the lines that require fixing. The step response characteristics have also been displayed. Th...

2 years ago | 1

| accepted

Answered
How to visualise feedback function?
Hi @Rubayet This is how you can use the 'feedback()' function to obtain the closed-loop system. You can compare the two approac...

2 years ago | 0

| accepted

Answered
How to manually simulate linear system without lsim
Hi @Valeriy Other than lsim, you have two options for solving the differential equations: you can use the built-in ODE solver o...

2 years ago | 1

Answered
Why does my plot line appear outside the axes?
Because the xlim() command is used on the right y-axis plot. x = [0 1 2 3 4]; yl = [0 1 2 4 3]; yr = [0 2 3 1 2]; yyaxis le...

2 years ago | 0

Answered
Why is my 3D Projectile Trajectory not being calculated properly?
Hi @Abeljohn Taking a mathematical physicist's perspective into consideration, I would recommend focusing on correcting the cod...

2 years ago | 0

Answered
Index exceeds the number of array elements. Index must not exceed 3. HELP
Hi @Elizabeth Pickford Few places require fixes. Check out the annotated lines. S0 = 99; I0 = 1; R0 = 0; N0 ...

2 years ago | 2

Answered
Error while multiplying 2 SISO transfer functions.
load('dataC1C2.mat') Hi @Bogdan -Ervin While I haven't been able to pinpoint the exact root cause of the issue, I can suggest ...

2 years ago | 1

| accepted

Load more