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

circa un mese fa | 0

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

circa un mese fa | 0

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

circa un mese fa | 1

| accettato

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

circa un mese fa | 0

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

circa un mese fa | 0

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

circa un mese fa | 0

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

circa un mese fa | 0

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

circa 2 mesi fa | 1

| accettato

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

circa 2 mesi fa | 0

| accettato

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

| accettato

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

circa 2 mesi fa | 0

| accettato

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

circa 2 mesi fa | 0

| accettato

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

circa 2 mesi fa | 1

| accettato

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

circa 2 mesi fa | 0

| accettato

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

circa 2 mesi fa | 1

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

circa 2 mesi fa | 1

| accettato

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

circa 2 mesi fa | 0

| accettato

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

circa 2 mesi fa | 1

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 2

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

circa 2 mesi fa | 1

| accettato

Risposto
I have 2 graphs , on the Y axis I have Acceleration in graph. 1 and Speed in graph 2. And on the X axis for both I have Period (Seconds). How can I create a third chart?
How about this? figure(3) % create a 3rd graph plot(displacement, acceleration) % make the plot

circa 2 mesi fa | 0

Risposto
How do I write time dependent variables in my equations of motion?
Hi @Jessica The analytical solutions and results presented in @Torsten's post are indeed accurate. Given that the system is lin...

circa 2 mesi fa | 0

Risposto
Phase plane plot second order ODE
Looks correct! No issue because I checked with the built-in @odephas2 function to generate the 2-D phase plane plot. Edit: Upon...

circa 2 mesi fa | 0

| accettato

Risposto
How can I write a set of first order ODEs with two variables?
Hi @Lily I made some edits to enhance the annotations. Essentially, the idea is to represent the dynamic system in state-space ...

circa 2 mesi fa | 1

Risposto
Curve fitting with multiple variables?
Hi @Liril Silvi, See if the polynomial surface function is acceptable tb = readtable('Book2.xlsx', 'VariableNamingRule','pres...

circa 2 mesi fa | 0

| accettato

Risposto
how to save only the final output of ode 45 solve
Hi @SOUVIK DARIPA I created a dummy model to test the for-loop code. Though you didn't annotate the code properly, I believe t...

circa 2 mesi fa | 0

Risposto
How to write this block diagram into Matlab in feed forward control form.
Hi @Jake I have successfully utilized the 'feedback()' function to obtain the same modeling result for as presented in my prev...

circa 2 mesi fa | 0

Carica altro