Answered
I would like to know how to provide feedback on the scope's data during the simulation time.
Hi @석준 The errors likely don't stem from the Scope but are more likely a result of the system being excessively stiff, or the s...

2 years ago | 0

Answered
What does "invalid use of operator" mean here? I add parenthesis, that becomes error, i remove it and then the operator becomes the error...
Hi @Yuvraaj Pasumarthy I didn't check the correctness of your equation. However, I have fixed some parentheses and added a dot ...

2 years ago | 0

| accepted

Answered
How to check the linearity of a system by using a Transfer function which is consisted of PID Parameters and other two constants?
Hi @Raveesha Bandara If your models of the actuator and sensor are fairly accurate, then consider using these formulas to calcu...

2 years ago | 1

| accepted

Answered
Sliding Mode Controller for the Double Integrator
Hi @DAYAL ND Not sure if you'll see this or not. After all, this problem was posed around 12 years ago. I rarely come across SM...

2 years ago | 0

Answered
Assistance Needed: Solving System of Equations in MATLAB
Hi @khadija Because the system is underdetermined, the 'solve' command returned some free parameters in which you can assign va...

2 years ago | 0

Answered
MATLAB Answers Wish-list #6 (and bug reports)
Hi @Rik I've been enjoying the forum and appreciate the efforts to make it user-friendly. I wanted to suggest a feature that co...

2 years ago | 0

Answered
How do I use orbital integrators for orbital propagation of Halo orbits?
Hi @Dixing These are not solid answers because your MATLAB code has not been tested. Different numerical integration methods ex...

2 years ago | 0

Answered
what is the MATLAB code for Sketch the polar plot of the frequency response for the following loop transfer functions: i. Gc(s)G(s
Hi @Jerome I believe that it is fair to ask for guidance on where you can find more information to solve problems by yourself. ...

2 years ago | 0

Answered
How to solve the error for graph?
There are missing characters. From your code, it should be 'DE_LU'. num_simulations = 10000; %Common parameters Discount_Ra...

2 years ago | 0

Answered
Non linear plant equation and design the PID controller
Hi @Jay Sutariya The motion dynamics of your Z-axis robot can be expressed through the following equation: Here, the combine...

2 years ago | 0

Answered
Conversion to double from pid2 is not possible-optimization app
Hi @Ihsan Ullah Khalil I ran your code using the ga() tool, and it produced a set of PID gains that enable the controller to tr...

2 years ago | 0

Answered
Second order ordinary differential equation
Hi @Abdul I believe that 'explicit solution not found' is more of a notification than an error message. Upon closer inspection,...

2 years ago | 0

Answered
Error in Error in 'HPW/HPW/VSC1 Control/Current Regulator/Fuzzy Logic Controller with Ruleviewer/Fuzzy Logic Controller': Failed to evaluate mask initialization commands. Ca
Hi @Anirudh Kumar You haven't provided the FIS file for testing. Nonetheless, I generated a dummy FIS file named 'ig.fis' and s...

2 years ago | 0

Answered
How to get the plot from ODE
Hi @Kartik Lanjewar, There are over 50 equations in the PDF, and the ODEs appear in various places. Most forum users don't hav...

2 years ago | 0

| accepted

Answered
Find the solution of the coupled system of equations
Hi @Arad If you set a specific value for the variable d00, the system of 6 nonlinear equations can be solved using the fsolve()...

2 years ago | 0

| accepted

Answered
Tuning a PID controller to desired Overshoot, settling time and rise time
Hi @Muhammad I'm revisiting a control problem we encountered a year ago. Previously, we utilized the systune() method to establ...

2 years ago | 0

| accepted

Answered
Subplot with 2 stacked plots but bottom is split in 3 vertically
@HC98, Do you mean to plot them side-by-side horizontally? clearvars x = -10:0.01:10; y = cos(x); figure(1) subplot(2, 3...

2 years ago | 0

Answered
PID Tuning via Ziegler Nichols Method
Hi @Tom Regarding your original issue, you can improve the display of the waveform from the Simulink Scope by reducing the maxi...

2 years ago | 1

Answered
PID Tuning via Ziegler Nichols Method
Hi @Tom If my recollection serves me right, the Ziegler–Nichols method requires the process plant to be open-loop stable. Howev...

2 years ago | 1

| accepted

Answered
Temperature varying input for outdoor temperature in refrigeration cycle
Yes, technically it can be done using the From Workspace block: This block can read data from the Workspace and into into a S...

2 years ago | 0

Answered
How to illustrate the dynamic system output for a PID controller system?
Hi @Halil Ibrahim It appears that a simple PI controller can regulate the output to the desired reference signal. global cume ...

2 years ago | 0

Answered
how can in make this transfer fnunction block in simulink ?
Hi @sajad Tarverdian If your LPF has a strictly proper transfer function, you can incorporate 's*Cv' into the LPF transfer func...

2 years ago | 1

| accepted

Answered
Getting complex solution with Matlab ode45
Hi @Kaiwei As noted by other users, the complex-valued solution is caused by the square root term 'sqrt(B*y)' when the output y...

2 years ago | 0

Answered
How a varying PI parameter output by Reinforcement Learning Agent help to tune the static PI controller
Hi @轩 I believe it is scientifically logical that, when the difference between the actual level and the reference level (error)...

2 years ago | 0

| accepted

Answered
Matlab script to find the range of a parameter that makes the transfer function asymptotically stable?
Hi @Morgan James Sansonetti With the brute force concept, you can determine if the transfer function is stable using isstable(...

2 years ago | 0

Answered
I wonder how to make the lines thicker in rlocus graph
Hi @jaejin kim You can try this approach to make the lines of your loci thicker. num = [1]; den = [1 4 5 0]; K = 0:0.01:10...

2 years ago | 1

| accepted

Answered
Inconsistencies between using cftool and plot
Oh, I see. The reason for the inconsistency in the plot is due to the fact that the cftool app only displays 5 digits of precisi...

2 years ago | 1

| accepted

Answered
Problem in solving matrix diiferential equation using ode45?
Hi @Mehdi Since you already have the nicely-defined matrices, you might as well put the ODEs in the State-Space model and solve...

2 years ago | 1

| accepted

Answered
How to add add a disturbance term (du) within the architecture section of sisotool
Hi @John Bach I believe you cannot "add" a specific input disturbance (du) into the control system, just like you cannot "add" ...

2 years ago | 0

| accepted

Answered
ode45 error-time-dependent parameter
Hi @Elahe S You may not fully understand some of the MATLAB error messages if you are not a programmer or if you haven't encoun...

2 years ago | 0

| accepted

Load more