Answered
How to find the equilibrium points of dynamics system?
The system has two equilibrium points ( and ). It is possible to evaluate the system's stability through a graphical method. Fro...

3 years ago | 1

Answered
Matlab code for 2nd order differential equations
Hi @KARUNA BOPPENA Which textbook are you referring to for this problem? This appears to be a boundary value problem. The so...

3 years ago | 1

Answered
How to convert simulink based Reinforcement learning environment to function or script based.
Hi @Chetan Thakur I believe you can create a MATLAB function to describe the water level in a pump-driven storage tank, and the...

3 years ago | 1

| accepted

Answered
Solve closed loop system equation with disturbance input via function handle
Hi @Fabian Friz In addition to using the 1-D data interpolation method interp1(), as suggested by @Torsten, it is also possible...

3 years ago | 1

Answered
Ordinary differential equations with two unknows (ode45)
Hi @Mei Cheng If ode15s() solver is used, the simulation runs. You should be able to plot the results. p.a = 0.0062; p.b...

3 years ago | 1

| accepted

Answered
getting error while plotting graph
Hi @Puneet, Update: I have established the relationship between displacement and velocity using trigonometric functions, specif...

3 years ago | 0

Answered
Find f if f′′(x) = 4−6x−40x3, f(0) = 2 and f′(0) = 1
Hello @Ronald Since the function is a polynomial, you can apply the power rule to obtain where is an arbitrary constant kn...

3 years ago | 0

Answered
Can't extract variables that give the best cost function from PSO code
Hi @Phumelele Magagula I've made some modifications to the PSO code in order to test the toy problem, as certain crucial pieces...

3 years ago | 0

Answered
I am using ODE45 to solve a system of 4 ODEs. my DVsol ( that contains all results for my Dpendent Variables) are showing zero.
Hi @S Ashish Update: In short, the zeros are the equilibrium points of the system. Here are Trajectories obtained from the non-...

3 years ago | 1

| accepted

Answered
ODE solution for a magnetic flux equation
Hi @Syed Muhammad Ghufran Please check if this is what you are looking for. tspan = 0:0.1:10; phi0 = 0; [t, phi] = ...

3 years ago | 1

| accepted

Answered
Find X,Y,Z of this linear
Alternative approach. This should produce the same results as @Nathan Hardenberg. A = [26 472 791; 42 567 358; 49 5...

3 years ago | 1

Answered
fuzzy temperature control using transfer function of plant.
Multiple setpoints can be constructed using a series of heaviside functions. % construction of multiple setpoints t = linspac...

3 years ago | 1

Answered
I have a model for which time delay is coming negative and I'm unable to find transfer function. How should I proceed to calculate tf?
Hi @Shubham Based on the data extracted from the step response, the system can be approximated as a first-order transfer functi...

3 years ago | 0

Answered
I have given matrix Q and function to solve ode45 .here 'x' and 'f' is a column 20*1 vector. xprime is a derivative of x.please help me the code to co
Hi @Rahim In the study of dynamical systems, your Kausar() system is in strict-feedback form. If is an Identity Matrix, then t...

3 years ago | 1

Answered
I have given matrix Q and function to solve ode45 .here 'x' and 'f' is a column 20*1 vector. xprime is a derivative of x.please help me the code to co
Hi @Rahim This problem is slightly different from the previous one, but the principle to generate the formula for the function ...

3 years ago | 1

Answered
Matlab figure: Replace xaxis with custom labels
Hi @Travis Head Is the following workaround acceptable? time = linspace(0, 30, 301); % original x-axis sun = tanh(1/3*(ti...

3 years ago | 1

Answered
I have given matrix and function to solve ode45 .here 'x' and 'f' is a column 20*1 vector. xprime is a derivative of x.please help me the code to complete .
Hi @Rahim The code runs now by fixing nn, but the system stability depends on the randomly chosen initial values x0. Update: T...

3 years ago | 1

| accepted

Answered
How does PID block tune the gains?
Hi @Ahmad Baaj The PID Autotuner is a proprietary algorithm that gives MathWorks® a competitive edge in the industrial automati...

3 years ago | 0

Answered
Simulink PID Tuner can't find good solution
Hi @George Nehma This is a very high 16th-order coupled system. I'm not sure if it can be stablized by the PID controller. So I...

3 years ago | 1

| accepted

Answered
Inconsistent result: Integration of step response vs direct evaluation
Hi @Joe For completeness, I am including an example of the full-state variable feedback simulation using the symbolic matrix ex...

3 years ago | 2

Answered
Inconsistent result: Integration of step response vs direct evaluation
Hi @Joe The ode45() function can be implemented this way: tspan = 0:0.01:2; x0 = [0 0]; % initial condition [t, x] ...

3 years ago | 1

| accepted

Answered
ODE 45 gives unexpected result on pendulum tuned mass damper
Hi @Baker You can use the odeToVectorField() function to derive the dynamical model from the Euler–Lagrange equations. The accu...

3 years ago | 0

Answered
how to write fuzzy rules for proportional integral controller
@aruna sri If the same response is required under a PI controller, then a Fuzzy Linear P + I Controller can be designed. Inform...

3 years ago | 1

Answered
Ga algorithm fitness value not improving
Hi @Phumelele Magagula To observe convergence, you should consider increasing the values of 'PopulationSize' and 'MaxGeneration...

3 years ago | 1

| accepted

Answered
How to calculate the length of a curve with known coordinates (x,y)?
Hi @albert WAN If you are referring to the arclength calculation, then refer to the following https://www.mathworks.com/matlab...

3 years ago | 0

Answered
how to use ode45 from user input ode functions. I want to solve system of first order ODE (two equations).
% The ODEs f = @(t, x) [- x(1) + 6*x(2); - x(2) + 4*x(1)]; % time interval tspan = [0 0.7]; % initial ...

3 years ago | 0

Answered
How to skip some rules in Fuzzy logic?
Hi @Yok Tungthamrongkul I believe that we could design the input membership functions so that the low rule firing strength does...

3 years ago | 1

| accepted

Answered
Where can I find this block?
Hi @Merin josy Looks like a Piezo Stack. https://www.mathworks.com/help/sps/ref/piezostack.html The block can be found in Sim...

3 years ago | 2

| accepted

Answered
the mass matrix and Jacobian matrix in ode15s
Hi @Tony Cheng Following @Torsten's advice, perhaps showing you an example of obtaining the Jacobian matrix for a 2-DOF rigid r...

3 years ago | 2

Answered
Can you help me get the graph I want in a PID control system given the transfer function and design? PLEASE HELP ME
Hi @veysel burçak Update: This basic signal (in veysel_problem.slx) produces the sawtooth pattern that starts from 0. Because t...

3 years ago | 2

| accepted

Load more