Risposto
How to find largest Peak Values of signal and Save X,Y Values in MATLAB
If you are referring 'e' as the exponential function, and so on, then try this: e1 = exp(1) e2 = exp(2) e3 = exp(3)

30 giorni fa | 0

Risposto
Simulink circuit to gain transfer function, then plot on bode plot in matlab
Hi @Aaron Frost If you have Simscape, then you should be able to create the model of the Op-Amp circuit within the Simulink env...

30 giorni fa | 0

| accettato

Risposto
calculate/pich up x-value from step function
Hi @Olga Rakvag % 1st-order step response Gain = 0.999*5; np = tf(Gain, [0.000999, 1]) r63 = Gain*0.632 % 63 percent of...

30 giorni fa | 0

Risposto
Anti-windup techniques for multiple PID Controller feeding the same actuator
Hi @Francesco Paolo De Simone The PID Controller block can be located in the Continuous block library. Check this out: https:...

30 giorni fa | 0

Risposto
Hi @vinusan I'm unfamiliar with your Simulink model as well as the cost function that is related to Rise Time and Fall Time. Ho...

30 giorni fa | 0

Risposto
solving a 1 DoF MSS-Spring-Damper when the spring stiffness is a function of displacement
Hi @reza ahmadian If the system is stiff, then you can try using the ode15s() solver. In the following example, the external f...

circa un mese fa | 0

Risposto
How can I use the matlab function like fcn block
Hi @daglar7 I think this one should be . In this blog, there is an article on the "Quarter Car Modeling" by João Marabisa. Yo...

circa un mese fa | 0

Risposto
How to create a sinusoidal bump for car in road?
Hi @Nguyen Hieu Instead of using the If-Else statement, I took the pure math approach of describing the shapes of the road bump...

circa un mese fa | 0

| accettato

Risposto
Solve a system of 3 second order equations
Hi @Sam Butler Some of the the variable names in your original code are different from the ODEs shown in the image. So I fixed ...

circa un mese fa | 0

Risposto
How do I create a transfer function of a high order
Hi @DAL Here is an alternative approach that should produce the same result. Note that num, p3, and den are vectors of polynom...

circa un mese fa | 0

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

circa un mese fa | 1

| accettato

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

circa un mese fa | 0

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

circa un mese fa | 0

| accettato

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

circa un mese fa | 0

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 1

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 1

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 0

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

circa 2 mesi fa | 1

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

2 mesi fa | 0

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

2 mesi fa | 1

| accettato

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

2 mesi fa | 0

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

2 mesi fa | 0

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

2 mesi fa | 2

| accettato

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

2 mesi fa | 0

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

2 mesi fa | 0