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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 years ago | 2

| accepted

Answered
Plotting trapezoids in one graph
Hi @davut This will be the final update. As shown in the previous approach, finding the one-line formulated trapezoid-like func...

2 years ago | 1

Answered
the mass matrix and Jacobian matrix in ode15s
Hi @Tony Cheng is the state-dependent mass matrix. Therefore, you can specify the mass matrix using the 'Mass' option of odese...

2 years ago | 2

| accepted

Answered
Expand a certain range on x axis
Hi @VICTOR COELLO ELOI Not sure if this is what you want. Perhaps you can try using xlim() to set the x-axis limits to range fr...

2 years ago | 0

Answered
Plotting trapezoids in one graph
Hi @davut In the future, if the trapezoids are used for performing mathematical analysis later, then the formulated trapezoid f...

2 years ago | 1

Answered
Plotting trapezoids in one graph
Hi @davut I'm revisiting your plotting problem. If you simply want to display the trapezoids and their flipped counterparts, yo...

2 years ago | 1

Answered
Solve non linear equation with vector
Hi @Guilherme Lopes de Campos I have fixed the function f in the code. Now it should be working correctly. The dados.mass and d...

2 years ago | 0

Answered
Plotting trapezoids in one graph
Hi @davut Mathematically, these plots represent piecewise linear functions. The easiest way is probably to use the trapezoidal ...

2 years ago | 2

| accepted

Answered
One of the systems I want to control with PID is the state space equation with disturbances. Can someone help me to design matlab function of the system? Please
Hi @veysel burçak I have fixed the code in the MATLAB Function block. The initial condition is assigned in the Integrator block...

2 years ago | 1

| accepted

Answered
Lumped mass model of underwater tethered ROV
Hi @Dhruvit Without providing the governing physical laws, it is relatively difficult to show you how to model it in Simulink. ...

2 years ago | 0

Answered
how to assign initial values to scalar quantities in simulink function. please help
Hi @John You can insert the initial values in the Integrator block as shown in the example below:

2 years ago | 1

| accepted

Answered
Heat transfer modelling of motor
Hi @Kranz, Before modeling, I recommend creating a sketch of the heat transfer process in the form of a Piping & Instrumentatio...

2 years ago | 0

Load more