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

quasi 3 anni 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...

quasi 3 anni 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...

quasi 3 anni 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-...

quasi 3 anni 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] = ...

quasi 3 anni 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...

quasi 3 anni 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...

quasi 3 anni 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...

quasi 3 anni 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...

quasi 3 anni 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 ...

quasi 3 anni 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...

quasi 3 anni 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...

quasi 3 anni fa | 1

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

quasi 3 anni 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...

quasi 3 anni fa | 1

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

quasi 3 anni fa | 2

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

quasi 3 anni 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...

quasi 3 anni fa | 0

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

quasi 3 anni fa | 1

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

quasi 3 anni fa | 1

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 1

| accettato

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

quasi 3 anni fa | 2

| accettato

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

quasi 3 anni fa | 2

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

quasi 3 anni fa | 2

| accettato

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

quasi 3 anni fa | 1

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

quasi 3 anni fa | 2

| accettato

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

quasi 3 anni fa | 0

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

quasi 3 anni fa | 1

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

quasi 3 anni fa | 1

Carica altro