回答済み
I have solved a set of three coupled odes in MATLAB. I have to plot another function which is a function of one of these odes. How this can be done?
Hi @Rakhi Two methods are shown in the example. The 1st method is by logical intuition. If deln depends dy(3), and the equation...

3年以上 前 | 1

回答済み
Rewrite the compensator formula for a pd controller into the general formula.
Hi @Joris Bogaerts The PD compensator from your lecture note appears to have the same structure as the standard form of the PD ...

3年以上 前 | 1

| 採用済み

回答済み
Can't find control system tuner in simulink
Hi @relue Not exactly sure what happened. While waiting for the solution from the Staffs or other Users, you can use this trick...

3年以上 前 | 0

回答済み
how to add a perturbation while solving ode using ode45? can i use the analytical approximation of Heaviside function for it if yes how?
Hi @SOUVIK DARIPA If the perturbation looks like a step disturbance, then you can try using the Logictic function instead, whic...

3年以上 前 | 1

| 採用済み

回答済み
Simulink PID Controller not behaving Properly
Hi @Nick Update: The reason behind the instablity is caused by the Fixed-step size solver. If you want to let (by default), ...

3年以上 前 | 1

回答済み
How can I define the error function and use a Maclaurin series to approximate a value?
Hi @codeconstructo Are you looking for something like this? syms x T1 = taylor(erf(x))

3年以上 前 | 0

回答済み
LQI(): integrator response not as expected
Hi @John If I'm not mistaken, the result is due to the disturbance injected at the e_dot level, which I think it should be inj...

3年以上 前 | 2

回答済み
what is the code to implement a disturbance of 0.2 in the system at 400 sec that would test the disturbance rejection of the controller and allow the system to return to 1?
Hi @sabavath jayaram Since your system is not provided, here is a simple example to demonstrate the disturbance rejection capab...

3年以上 前 | 0

回答済み
How to solve for the torsional degrees of freedom
Hi @Siddharth Jain You can try modifying the following code to fit your application. tspan = [0 0.1]; y0 = [0.1 0.2 0 0...

3年以上 前 | 0

回答済み
design feedback state controller
Hi @Milad Bahaedini You can try the following design approach if it works for your application. A = 0; B = 16.6; C = 4...

3年以上 前 | 0

回答済み
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)

3年以上 前 | 0

回答済み
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...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
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:...

3年以上 前 | 0

回答済み
Adopting Genetic algorithm for a Simulink model without feedback loop
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 1

回答済み
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...

3年以上 前 | 1

| 採用済み

回答済み
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 ...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 2

| 採用済み

回答済み
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 ,...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 1

| 採用済み

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 1

回答済み
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 ...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 0

回答済み
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...

3年以上 前 | 1

さらに読み込む