Answered
Leader follower approach formation control problem
Hi @Enrica Regarding the task of designing a Leader-Follower formation, the first step is to ensure that the leader robot track...

1 month ago | 1

Answered
How to get acceleration data while using ODE solver for some governing equation of motion?
Hi @Paras Use the deval() command to acceleration data. sol = ode45(@(t, x) [x(2); -x(1)], [0 10], [1; 0]); t = lin...

1 month ago | 0

| accepted

Answered
I need control system block diagram of this specific system.
Hi @Anik Though this is not directly related to MATLAB/Simulink, here is the Control Block diagram of the BESS system that I fo...

1 month ago | 1

Answered
write a MATLAB code to locate all yellow circles in the provided image
Hi @nishanth patil The code is available in the example to locate the bright yellow circular objects. You need to adjust the Se...

1 month ago | 0

Answered
Error using InputOutputModel/feedback
Here is a simple to demo to achieve steady-state errors using two PID controllers. %% State-space system m = 4; % mas...

1 month ago | 0

Answered
Solving system of nonlinear differential equations using ode45
Hi @Miroslav Jovic It appears that your current formulations may be erroneous. If you are not comfortable memorizing the requir...

2 months ago | 0

Answered
Please I want help I have homework I made a mistake saving the file
Hi @Baha Alholi I did a test and "accidentally" saved the code in mat-file format. If I attempt to open the file normally, it t...

2 months ago | 0

Answered
How to draw a Nyquist plot while avoiding the pole at the origin
Hi @ayumi obitsu-san Consider the Nyquist plot for for transfer function with a pole at the origin (also known as "Type-1 syst...

2 months ago | 0

Answered
Error in ode15s
I suspect there is also a typo for Ta because the 'a' key is next to the 's' key. If you follow the advice in Walter's Answer, ...

2 months ago | 0

| accepted

Answered
How can I change the length of a line using the xline() function?
Hi @Md Affan Since you know the coordinates, you can directly use the plot() function. % plot([x1, x2], [y1, y2]) creates a li...

2 months ago | 0

| accepted

Answered
How do I code Ziegler-Nichols Tuning Method to find PID control constants?
Hi @ieng100, It is now time to provide a conclusion for this control problem. In the Ziegler-Nichols 2nd method, the critical ...

2 months ago | 0

Answered
how to use the parameters of neural network in simulink?
Hi @Ahmad Al-Issa If you want to implement a trained neural network in Simulink to predict the Desity based on two inputs (p, T...

2 months ago | 1

Answered
Control System Tuner always selects maximum value
Hi @Cedric The algorithm in Control System Tuner will find the best combination of PI gains that produces the smallest steady-s...

2 months ago | 0

Answered
How I Design Adaptive Cascade Sliding mode Observer for Wind Turbine ?
Hi @ahmad nouri I can understand the frustration that can come with manually designing an observer, as it often requires comple...

2 months ago | 0

Answered
how to solve coding issue
Hi @Radwan, It's good to hear that you're making progress. If you encounter any issues with plotting other types of charts, fe...

2 months ago | 0

Answered
Fit Multiple gaussian curve on data with flat tops
Hi @AMIT For a double-hump data with plateaux, you can try fitting it using two Exponential Power distribution functions. Let's...

2 months ago | 0

Answered
Discret time LQR R matrix must be symmetric positive definite with as many columns as B error
Hi @Andrei Rotaru Fixing the code as shown will eliminate the error message. R = eye(size(B, 2)); K_d = dlqr(Ad, Bd, Q, R, ...

2 months ago | 0

| accepted

Answered
PID model for MIMO system
Hi @Andrei Rotaru Since the Cubli system is underactuated and you seek to use only a PID Controller, you must select which outp...

2 months ago | 0

| accepted

Answered
Can we change the Constraints in MPC ?
Hi @Kripanshu If you wish to define the bounds on the manipulated variable, , such that , can you accept the following workarou...

2 months ago | 0

Answered
PID controller, difference when graphing step function with PID control block in matlab and simulink
Hi @hoang Both responses look similar if you implement them correctly as shown. s = tf('s'); Gp = 1.883e5/(s^2 + 4466*s + ...

2 months ago | 1

| accepted

Answered
Why step respose don't work for first input of a MIMO? And how to use correctly feedback function for pole placement?
Hi @Andrei Rotaru You defined the system with 3 outputs; thus you need to feedback 3 outputs as well, not 1 output. %% Model p...

2 months ago | 0

| accepted

Answered
Can't stabilize system with PID
Hi @Andrei Rotaru Here is the alternative control solution for finding the gains using LQR approach. %% Parameters l = 0.08...

2 months ago | 0

Answered
Facing problem in printing real pole of transfer function of a system(Control System)
Hi @Arya The following is what you wish to "print" out in the title in Integer format. However, please note that the title it...

2 months ago | 0

Answered
150Hz Sine wave in MATLAB simulink
Hi @Manuprabha Ravikumar In short, your sinusoidal signal is undersampled. There are only 5 samples in one cycle. ts = 1/600 ...

2 months ago | 1

| accepted

Answered
Integrator does not accept input
Hi @Andrei Rotaru The error is caused the mismatched matrix dimension. Do the following as shown in the graphics below should f...

2 months ago | 0

| accepted

Answered
Not Enough Input Arguments
Hi @Sue Xin, There is no error in my simulation below: [V, F] = ode45(@etOH_prod, [0 10], ones(4, 1)); plot(V, F), grid on, ...

2 months ago | 0

Answered
Simulink - How to create a conditional "if" block
Hi @Ahmad Al-Issa Firstly, could you determine the rate of change of speed (referred to as "acceleration" in physics)? This inf...

2 months ago | 0

Answered
Design service for LQR controller for unknown system based on available Multiple Inputs and Multiple Output data
Hi @Hao Do you have some free time to spare for some Prerequisite Courses so that you are ready to advance to the next level of...

2 months ago | 0

Answered
Solving a system of ODEs whose coefficients are piecewise functions
Hi @Dehua Kang The red curve in your image is and the green curve is . Below is another demo, with the data from the piecewise...

2 months ago | 0

Answered
Multiple PID tuning in order to control all four states in the inverted pendulum model
Hi @Claudio Muzi Your new question in this comment is related to optimal control. I'm not sure if this topic is covered in your...

2 months ago | 0

Load more