回答済み
What is the best objective function to avoid the overshot when optimizing a PID controller?
Hi @aymene bacha First of all, you need to understand what causes the overshoot in the system, and what does not. Do you have ...

約3年 前 | 1

回答済み
How can we represent this transfer function into state space representation in MATLAB?
Hi @Hind Aljallaf As far as I know, there is no MATLAB command in the Control System Toolbox for directly computing the control...

約3年 前 | 0

回答済み
I get error when I try to plot sigmoid function
Hi @cindyawati cindyawati A pure sigmoidal logistic function looks like this x = linspace(-10, 10, 20001); S = 1./(1 + exp(...

約3年 前 | 2

回答済み
how to right math functions
Hi @Abdulelah AlQahtani For simplicity, the signal can be defined like this. t = linspace(-5, 10, 15001); u1 = 0*(t <= 0); ...

約3年 前 | 0

回答済み
How to use MATLAB's lqi.m function?
Hi @Craig Chambers I'm unfamiliar with you system. So, I tested with the LQR first. It seems that a properly scaled step inpu...

約3年 前 | 0

回答済み
ODE45 to solve multiple degree of system free vibration
Hi @Karolina Kugiel ode45 solves the problem by integrating where . So I guess you looking for states . m1=10; m2=10; m3=10; ...

約3年 前 | 1

回答済み
How to find kp ki values by having pm and gcf in matlab ?
Hi @Basava I guess you are not looking for the analytical formulas for and because you asked in this forum. So, when the pha...

約3年 前 | 0

回答済み
Include a new condition to solve a system using ODE45
Hi @Mikel You can try the two approaches in the code. However, the step value should not exceed fs = 130, or else your designe...

約3年 前 | 0

回答済み
Optimisation PID Using Sliding mode script
Hi @Tarek I don't think that SMC can optimize the PID gains. The structure of SMC is not an optimization algorithm. Before op...

約3年 前 | 0

回答済み
Positive definite and LQR
Hi @Scott Not exactly sure what you want. But I think there is no absolute rule saying that the state-cost weighted matrix has ...

3年以上 前 | 1

回答済み
Write code and driver MR damper
Hi @kerollos The code can run now. However, you have to review the initial values and define for . The system looks unstable. ...

3年以上 前 | 0

回答済み
how to use the anfis command
Hi @Alessio Centamore I think the syntax is for old anfis() input arguments. OutputFismat = anfis(dati_all, FisMatrix, [40 nan...

3年以上 前 | 0

回答済み
Why is the output u always 0.166instead of 0 when my input e and es are both 0
Hi @罗雪峰 罗 The reason is because output 0.166 is computed from the Center of Area (CoA) defuzzification method. During the initi...

3年以上 前 | 2

| 採用済み

回答済み
How do I use a root locus to find a value of K such that the damping ratio of dominant closed loop poles is a specified value?
Hi @Thomas and @Luke McDevitt The steps are generally described in the following documentation, as well as in most undergrad co...

3年以上 前 | 1

回答済み
Obtaining MIMO kinematic model (+ controller) using data-driven approaches
Hi @mgf_04 This sounds like a system identification problem. If you have the System Identification Toolbox™ installed, then try...

3年以上 前 | 0

回答済み
how to sine wave plot
Hi @Raouf You can scroll down and find one example that is related to plotting a sine wave. 😉 help fplot

3年以上 前 | 0

回答済み
Derivative of state '1' in block 'PP_poly/Integrator1' at time 0.0 is not finite.
Hi @Dogukan It's good to hear that your problem is solved now. I moved my comment to the Answer section because it helped you t...

3年以上 前 | 0

回答済み
Track a circular trajectory by solving a QP and using quadprog solver (using CLF approach)
Hi @Pallov Anand Sufficiently increasing the value of alpha reduces the tracking error between the x-y trajectory and the desi...

3年以上 前 | 0

回答済み
Сan not identify block
Hello @Anton It is possible to create the block using "block mask" techniques. However, I think the authors probably (and simpl...

3年以上 前 | 2

| 採用済み

回答済み
Error when simulating an adaptive control system with an inverse reference model: Derivative is not finite.
Hi @Anton There is no obvious division-by-zero component. So, the system must be unstable, which causes the output to grow out ...

3年以上 前 | 3

| 採用済み

回答済み
Control vehicles velocity according to speed signs
@Purvil Patel, Here is th basic idea. Even though some speed limit signs maybe out of the sensor's range, the controller should...

3年以上 前 | 0

回答済み
Plot the function sin (x) on the interval [0, 5]. Now generate the discrete time signal from the sine function with 6 discrete values. Using this fundamental period, generate
Hi @Woods, follow this example. fcn = @(x) 2*x - x.*abs(x); fplot(fcn, [-1 1]) grid on title({'Plot of $y = 2 x - x |x|$ ove...

3年以上 前 | 0

回答済み
Solving coupled differential equations
Hi @Jon I'm unsure if the system has a general analytical solution. In Pure Math, from the properties of a stable 2nd-order OD...

3年以上 前 | 0

回答済み
Warning: No rules fired for Output 1. Defuzzified output value set to its mean range value 0.5.
Hi @Verónica Valencia Valencia I can only explain why the "Warning" appears. Once you understand, try fixing the underlying roo...

3年以上 前 | 0

回答済み
How to incorporate equations in the connect function for control design?
Hi @Jiten Parmar Thanks for clarifying that. For more info, you can find out how use 'connect' here. But I have seen people usi...

3年以上 前 | 1

| 採用済み

回答済み
ode45 taking too long to solve set of ODEs.
Hi @H, A simple test shows that the code works with ode15s() solver, and it produces results. Take note: If the initial value...

3年以上 前 | 0

回答済み
Error using FuzzyInferenceSystem/addRule Vector description: Rule length must be m+n+2, where m is the number of inputs and n is the number of outputs.
Hi @Verónica Valencia Valencia Change this line fis = mamfis('Name', 'myfis', 'NumInputs', 2, 'NumOutputs', 1); to fis = mam...

3年以上 前 | 1

| 採用済み

回答済み
How to numerically solve system of equations and differential equations simultaneously?
Hi @I CHUN LIN It seems that simple Substitution-and-Elimination method produces the solution . Thus, the linear ODE becomes...

3年以上 前 | 2

回答済み
Trouble plotting Second Order Equation
Hi @Nina It appears that you tried to simulate the undamped pendulum-like ODE with multiple initial angles. If I'm correct, th...

3年以上 前 | 1

| 採用済み

回答済み
how to show only selective legend in the graph
Hi @AL On the basic, you can do this: x = linspace(-pi, pi, 3601); y1 = sin(x); y2 = cos(x); y3 = 1*(x); plot(x, [y1' y2'...

3年以上 前 | 2

| 採用済み

さらに読み込む