Risposto
what is the code for plotting the differential equation w.r.t. a particular parameter not w.r.t. time. help please?
Hi @ZAHID YOUSUF If you are familiar with second-order systems like the harmonic oscillator, here is an example that shows a 3-...

circa un mese fa | 1

| accettato

Risposto
Plotting system outputs together with different time intervals for each system? HELP!
The lsim() function offers better control than the step() function. t = 0:0.001:15; Ts = [1 2 3 4 5]; w = 4./Ts; for j = 1...

circa un mese fa | 0

Risposto
Problem related with "odeToVectorField"
I don't see any symbolic differential variables in these three so-called ODEs. That's why odeToVectorField() threw the error mes...

circa un mese fa | 0

Risposto
How to get a view of Membership function in Fuzzy logic ??
Instead of printing the screen to create a screenshot of the membership functions (MFs), you can use the function plotmf() to pl...

circa un mese fa | 0

Risposto
How to model PID flow control with throttling (butterfly) valve in wells turbine in owc?
Hi @Rania Modeling in MATLAB generally requires a good understanding of the system that you intend to control. Start by develop...

circa un mese fa | 0

Risposto
Reinforcement Learning algorithm to tune PID parameters of a system
Hi @Bipratip, I didn't check everything, but I noticed that you reused the same quadratic cost function (Reward in RL terms) fr...

circa un mese fa | 0

Risposto
Problem using tf to perform a transfer function.
Hi @Leaysia Lampkin If you are unable to obtain the Control System Toolbox, many useful MATLAB-compatible functions can still b...

circa un mese fa | 1

Risposto
Please help me find a PID controller coefficient
Assuming the Ideal form: The PID controller in MATLAB takes the practical form , where represents the time constant of the de...

circa un mese fa | 0

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

circa un mese fa | 1

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

circa un mese fa | 1

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

circa un mese fa | 0

| accettato

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

circa un mese fa | 0

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

circa un mese fa | 1

| accettato

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

circa un mese fa | 0

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

circa un mese fa | 0

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

circa un mese fa | 0

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

circa un mese fa | 1

| accettato

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

circa un mese fa | 1

| accettato

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

circa un mese fa | 1

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

circa un mese fa | 1

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

circa un mese fa | 0

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

circa un mese fa | 1

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

circa 2 mesi fa | 1

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

circa 2 mesi fa | 1

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

circa 2 mesi fa | 0

| accettato

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

| accettato

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

circa 2 mesi fa | 1

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

circa 2 mesi fa | 1

| accettato

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

circa 2 mesi fa | 0

Carica altro