Answered
Multiple population Genetic Algorithm
Hi @Hari You can try specifying the Population Options in optimoptions(). https://www.mathworks.com/help/gads/options-in-genet...

3 years ago | 1

Answered
Lyapunov Exponent of Logistic Map using "lyapunovExponent" function
Hi @Mehmet Since you have the Predictive Maintenance Toolbox, then you can also add the Estimate Lyapunov Exponent Task to a Li...

3 years ago | 0

Answered
Plot E, H and power using MATLAB
Hi @Vraj It seemed that @KANISHK also asked the same question a few days ago: https://www.mathworks.com/matlabcentral/answers/...

3 years ago | 0

Answered
I am writing a program for lateral- direction motion of an airvraft using Runga Kutta 4th order method.
Hi @TUSHAR SEN This is just a test. The angles of deflection for the Ailerons and Rudder are set to . And it turns out that t...

3 years ago | 0

Answered
creating a piecewise graph
@Noah, you can probably test out the code, if this is the desired output: x = 0:1e-5:5; y = (15 + 2*(x - 1)).*heaviside(x - 2)...

3 years ago | 1

| accepted

Answered
How to produce a matrix with the following conditions?
Hi @M Maybe like this? M = ones(7) I = eye(7) v = 0.4; u = repelem(v, 7) D = diag(u) Solution = M - I + D

3 years ago | 1

| accepted

Answered
How to calculate rate constant if population vs time table data is given?
Hi @Arun, Looks like you want to find the value of to fit the data into the differential equation: The analytical solution ...

3 years ago | 0

Answered
Divergent solution using ode45
Hi @Abhik Saha If you reduce the value for , then the system should be stable. For more info, please check out Floquet theory....

3 years ago | 1

Answered
How can I compute the Area and the Centroid of the following shape?
Hi @M If your intention is to find the defuzzified output value for membership function mf at the interval in x using the centr...

3 years ago | 2

Answered
Solve nonlinear equation with a changing parameter
Hi @Mei Cheng Check if this is the plot you desire: x = linspace(0.1, 0.2, 101); A = 1.0764e-6./(0.4-2.*x).^3; B = (0.830...

3 years ago | 1

| accepted

Answered
Plot (@ 1 MHz) using MATLAB: (a) Electric field (b) Magnetic field (c) Total power flow
Hi @KANISHK, You want to plot something like this? n = 6; x = linspace(0, n*pi, n*1801); z = sin(x); y = zeros(1, length(x)...

3 years ago | 0

Answered
I need to derive the equation of motion that describes the movement of the lower leg as a function of theta in order to calculate and plot displacement,velocity,acceleration?
Hi, I don't think that MATLAB has a toolbox to intelligently search and derive the mathematical model from a list of all governi...

3 years ago | 0

Answered
Finding root of nonlinear functions
Hi @University Glasgow Read about fzero(). https://www.mathworks.com/help/optim/ug/fzero.html The solution may look like this...

3 years ago | 1

Answered
What is the best function of the following shape?
Hi @M The original code was accidentally highlighted and deleted due to sensitive touchpad. It was constructed based on @Torste...

3 years ago | 2

| accepted

Answered
Tuning PI, PD, PID controller
Not sure what happened. But it works for both auto and manual tuning. % Plant Gp = tf(1, [1 10 20]) % PID (Auto) Gc1 = ...

3 years ago | 0

Answered
Is there a way to see and understand the steps of reduction while this equation gets solved for V? The result should be somewhere around 6. Thank you.
Hi @Karl The equation is super long with many parentheses and it's hard to interpret without spaces. Maybe you can view it this...

3 years ago | 1

| accepted

Answered
How to find RMSE of ground robot simulation ..?
Hi @Paarth Perhaps you are talking about the mobile robot's travelled path and the planned path. This probably works provided ...

3 years ago | 0

Answered
Create a graph with square function of period different to 2π
Hi @Ricard Escriva Maybe like this? t = linspace(0, 24, 2401); duty1 = 100*10/24; % 10 hours in percentage dela...

3 years ago | 1

| accepted

Answered
How can i combine 5 curves in one figure?
Hi @Maria, I didn't clean up the code. But more or less, the hold is used. You can also set the LineColor so that it appears as...

3 years ago | 1

| accepted

Answered
How can I integrate a function related to the modified bessel function of the first kind?
Hi @祥宇 崔 Have you checked if this besseli() function for Modified Bessel function of first kind is applicable for your case? h...

3 years ago | 1

Answered
Settling time of response.
Hi @shahin sharafi I don't know how your DDE system is modeled, but you can probably try something like this to locate the posi...

3 years ago | 0

Answered
Dear researchers, how can can I simulate nonlinear disturbance observer for UAV on Simulink?
Hi @ALABA PHILIP OPAYEMI There are two Dryden Wind Turbulence Model blocks: one is continuous and the other is discrete. Check ...

3 years ago | 2

Answered
for simulation of pid controller what should I use N filter coefficient value 1 or 100?
Hi @SASANK DAS, I don't know your Buck Converter model. However, in this example, the filter divisor is 751. Generally, the va...

3 years ago | 0

Answered
Implementing PID regulator in multiple output system
Hi @Nikola Smrecki Thanks for your vote. You can use the gensig() function to generate the sine wave input, and then use lsim()...

3 years ago | 1

Answered
Implementing PID regulator in multiple output system
Hi @Nikola Smrecki If you find the performances and tuning are acceptable, please consider voting 👍 the Answer. Thanks! The Pl...

3 years ago | 2

Answered
Integration of system of ODEs fails, unable to meet integration tolerances
Hi @Luca Biddau There is nothing wrong with the assumption of the equation. However, the idealized differential equation of the...

3 years ago | 1

Answered
Implementing PID regulator in multiple output system
Hi @Nikola Smrecki Since you have state-space model, it is recommended to implement linear state-space system using the State-S...

3 years ago | 2

| accepted

Answered
How to use LQR regulator for nonlinear system?
Hi @Dario You just need the lqr() function to compute the gain matrix . Once it is obtained, you can extract the gain values fo...

3 years ago | 1

| accepted

Answered
Use simulannealbnd without specifying the Upper andd lower bound
Hi @Subrat Bastola There is no issue in this example. Perhaps, try clearing lb and ub variables from the Workspace. fun = @(x)...

3 years ago | 0

Answered
bode plot of simulink model using matab commands (codes)
Hi @Mahdi Zolfaghari This is an example to get the Bode plot with MATLAB code: Gp = tf([1 3], [1 2 3 0]) bode(Gp) margin(Gp)...

3 years ago | 0

Load more