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

circa 3 anni fa | 1

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

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

circa 3 anni fa | 1

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

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

circa 3 anni fa | 2

| accettato

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

circa 3 anni fa | 1

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

circa 3 anni fa | 0

Risposto
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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

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

circa 3 anni fa | 2

| accettato

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

circa 3 anni fa | 3

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

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

circa 3 anni fa | 0

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

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 0

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

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 2

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

circa 3 anni fa | 1

| accettato

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

circa 3 anni fa | 2

| accettato

Risposto
Unable to solve stiff differential equation
Hi @AJMIT KUMAR, It appears that the system is inherently unstable for . If you simulate the system for a longer time, then the...

circa 3 anni fa | 0

Risposto
plotting transfer function / time domain version
Hi @Miller If you want to use the step(sys) function, then the sys must be a SISO or MIMO Linear System Model. In your case, i...

circa 3 anni fa | 0

Risposto
Matlab Spring Damper models of Human Body Model
Hi @Phanindra Reddy Ravi There are some commercial realistic humans’ skeletal and muscle models developed by BoB Biomechanics. ...

circa 3 anni fa | 1

| accettato

Risposto
Train a Siamese Network to Compare Images with image size [227 227 3]
You should be able to find this line in the tutorial: imageInputLayer([105 105 1],Normalization="none")

circa 3 anni fa | 0

Risposto
Thermodynamic engine cycle and gas exchange simulation in ICE Engine
You can create the simulation model in MATLAB and Simulink, if you understand the mathematical model, or knowing how to make use...

circa 3 anni fa | 1

| accettato

Carica altro