Respondida
Solving a differential equation using ode45
Hi @Melhem Edit: The code is revised to capture the event of the falling block. As mentioned in the problem, the symbol is rel...

más de 3 años hace | 2

| aceptada

Respondida
How to transform a second order ODE to the format xddot=A.X+B.U
Hi @Ítalo Almeida The odeToVectorField() should work. But since you already have the linear 2nd-order system in this ODE form ,...

más de 3 años hace | 0

Respondida
phase portrait mathematical modelling
Hi @Latifah I think there is one unreadable non-ANSI character (probably a math operator sign) in the lnear.m file. I replace...

más de 3 años hace | 1

| aceptada

Respondida
How to solve and plot this set of differential equations?
Hi @Ijaz Ahmed I attempt to test the first of the first-order differential equations because it does not depend on . The relat...

más de 3 años hace | 0

Respondida
How to add some layers to ANFIS using Matlab toolbox?
Hi @Yeganeh Sattari The conventional ANFIS architecture has 5 layers that combines the elements of Adaptive Control, Neural net...

más de 3 años hace | 0

Respondida
Choosing optimal values from the genetic algorithm
Hi @Vivek You can try setting the rng to 'default' for the reproducibility of the result. If the function has multiple extrema...

más de 3 años hace | 0

Respondida
How to automatically accommodate the MF in the assigned range and not all stay in the same position in Fuzzylogicdesigner
Hi @Jose Luis Preciado Preciado If there are not too many MFs, can consider writing a brief script to flexibly design the MFs a...

más de 3 años hace | 1

Respondida
how to solve the equation: Exdot=AX+Bu; with E is a singular matrix ? thank you
Hi @khawla mrad If your system is linear, then try using dss() command. See example below: If the system are nonlinear, then ...

más de 3 años hace | 0

Respondida
ODE response vs CCF response of mass-damper-spring system
Hi @J AI Because the output matrix really means for this output equation where is the output vector and is the state vect...

más de 3 años hace | 0

Respondida
How can i solve this equation?
Hi @Yigit Random numbers may or may not work because the 2D surfaces are trigonometric functions and bounded. If the selected n...

más de 3 años hace | 1

Respondida
How can I plot this graph in MATLAB?
Hi @Itqan Ismail, search this function on MathWorks. help plot Here is an example: % Type out the line equations, and follow ...

más de 3 años hace | 0

Respondida
Problem with automatic tuning for PIDs in a Linear Parameter Varying System
Try applying the decoupling mechanism to uncouple the dynamics so that the states behave like SISO systems. With the SISO mat...

más de 3 años hace | 0

Respondida
explanation of ode45 for constant force
Hi @Ajinkya Analysis shows that the steady-state value of of the linear system is given by . In your case, I guess that the ...

más de 3 años hace | 1

Respondida
Generate frequency spectrum of original and regenerated signal
Hi @Laveeza You can copy and paste it on the Workspace and hit [Enter] to run it. If you want to edit the code in the future, ...

más de 3 años hace | 0

Respondida
how to display an output on a plot itself?
Hi @Mohiedin Bagheri Do you want to plot something like this? x = linspace(-5, 2, 701); y = - x - 3; z = 2*x; figure(1) pl...

más de 3 años hace | 2

| aceptada

Respondida
I have created a state space model for a pitch and bounce model of a vehicle, and I need help figuring out why one of my bode plots is not working and the other one is.
Hi @Tathva I provided some explanations below based on your queries about sys_2 and sys_3. ks1 = 34500; ks2 = 53400; ms = 1...

más de 3 años hace | 0

Respondida
6dof joint simulation problem
@Ridhi Bansal Most likely that the simulation ran into one of the singularities. You must identify the singularities and don't...

más de 3 años hace | 0

Respondida
how to implement fuzzy logic code without using fuzzy Toolbox
Hi @merlin toche Some functions from the fuzzy logic toolbox in your code do not work on the much older R2015a release. The to...

más de 3 años hace | 3

| aceptada

Respondida
Tune rules in type 2 fuzzy logic
Hi @mona ali You can probably copy and edit the algorithm in tunefis.m edit tunefis so that you can call your desired user-d...

más de 3 años hace | 0

Respondida
Where can I find Fcn block in simulink in matlab R2022a?
Hi @Adolfo Marro, @Andreas, @Harun GIRGIN You can try if the following blocks from the older release still work in your system....

más de 3 años hace | 0

Respondida
struggling with plotting slope field of second-order ODE containing sign function
Hi @Kieth Duong, The slope field depends on how the mesh is generated. Denser mesh is more accurate but with quiver, it will pr...

más de 3 años hace | 1

| aceptada

Respondida
How to plot the direction field of a system of first-order ODEs using MATLAB?
Hi @Kieth Duong, The basic code looks like the following: [X, Y] = meshgrid(-2:4/14:2, -2:4/14:2); U = 2*X + 9/5*Y; V = -5/...

más de 3 años hace | 2

| aceptada

Respondida
Fuzzy Best-Worst Method
Hi @SOURAV MONDAL The Best Worst Method is relatively new, being conceived in 2015 for dealing with multi-criteria decision-mak...

más de 3 años hace | 2

Respondida
Getting error when building Fuzzy Logic on Simulink
Hi @Ajay My guts tell me that in one of the three fuzzy inputs {Temperature, Humidity, and Wind Speed}, the designed MFs did no...

más de 3 años hace | 1

| aceptada

Respondida
Membership Trapezoid function Plot
Hi @Ameri The range for Last Hop is not given. So, you might try something like this: fis = mamfis; % Option #1: using rect...

más de 3 años hace | 1

Respondida
Why wont the state-space block accept a mux input?
Hi @ymps Your given state-space model is , and you will obviously see that it takes only a SINGLE input after doing the ma...

más de 3 años hace | 1

| aceptada

Respondida
Adaptive step size solver for an ODE
Hi @Ali Kiral After fixing the code, you can compare your result with the result by ode45(). A little analysis shows that the ...

más de 3 años hace | 2

| aceptada

Respondida
Adding surface to a beheaded Gaussian function
Hi @Bernd I'm not sure if this is what you want because your code doesn't reflect what you described. Anyhow, take a look at th...

más de 3 años hace | 1

Respondida
Error occurred while running the simulation
Hi Marco, In most cases, the problem is likely caused by the singularity event, something like approaching the division-by-ze...

más de 3 años hace | 0

Respondida
Is there a way to change the value of the transfer function through MATLAB & Simulink?
Hi @영탁 한 On top of the Paul's proposed solution in Simulink, here is one of few solutions in MATLAB. If you like this solution...

más de 3 años hace | 2

Cargar más