Answered
help me in degree of membership function correction in fuzzy logic tool with new membership function creation
That's because the amplitude of your custom function depends on the value of . If it is not designed as , then the upper bound o...

15 days ago | 0

Answered
Plot fuzzy membership function for specified parameters (x, u(x))
One proper way to plot the membership functions (MFs) is to create custom MFs based on the given fuzzy sets. https://www.mathwo...

16 days ago | 0

Answered
i need to solve the ecuation: f(x)=sqrt(x)-cos(x) but im given the following interval [0,1]
Hi @Eva f = @(x) sqrt(x) - cos(x) fplot(f, [0 1]) x0 = 0.6; % guess the solution is relatively close to x = 0.6 xs...

16 days ago | 0

Answered
How to get the output of a controller from MATLAB codes not simulink
Hi @ojonugwa adukwu Since a sample plant is not provided, we will use a 1st-order plant as an example: Gp = tf(1, [1 2]) ste...

16 days ago | 1

| accepted

Answered
How to change constant block automatically and run automatically
Write a mathematical function for the MATLAB Function block that describes behavior of the firing angle: https://www.mathwork...

16 days ago | 0

Answered
to get output from fuzzy logic toolbox
The graph or output values from the surface viewer on the Fuzzy Logic App are actually defuzzified output values. To view the d...

16 days ago | 1

Answered
The value of membership functions for x
@Gadelhag M Omar Mohmed To obtain the fuzzy set values, the evalmf() function can be used. In this example, the fuzzy sets are ...

16 days ago | 0

Answered
how to plot this equation
@shiv gaur, This only shows the propagation of the complex-valued roots of the 6th-order polynomial equation for the integer . ...

17 days ago | 0

Answered
Conversion of linear equations to form Ax=b
Hi @aliza mustafa You have only 4 equations, but there are 6 unknowns. So, the linear system is clearly rank-deficient. syms t...

18 days ago | 0

| accepted

Answered
De-augment a controller transfer funtion
Possibly through partial fraction decomposition. help residue

18 days ago | 0

Answered
Multiple population Genetic Algorithm
Hi @Hari You can try specifying the Population Options in optimoptions(). https://www.mathworks.com/help/gads/options-in-genet...

18 days ago | 0

Answered
Lyapunov Exponent of Logistic Map using "lyapunovExponent" function
Hi @Mehmet Since you have the Predictive Maintenance Toolbox, then you can also add the Estimate Lyapunov Exponent Task to a Li...

18 days ago | 0

Answered
Plot E, H and power using MATLAB
Hi @Vraj It seemed that @KANISHK also asked the same question a few days ago: https://www.mathworks.com/matlabcentral/answers/...

18 days ago | 0

Answered
I am writing a program for lateral- direction motion of an airvraft using Runga Kutta 4th order method.
Hi @TUSHAR SEN This is just a test. The angles of deflection for the Ailerons and Rudder are set to . And it turns out that t...

19 days ago | 0

Answered
creating a piecewise graph
@Noah, you can probably test out the code, if this is the desired output: x = 0:1e-5:5; y = (15 + 2*(x - 1)).*heaviside(x - 2)...

19 days ago | 0

| accepted

Answered
How to produce a matrix with the following conditions?
Hi @M Maybe like this? M = ones(7) I = eye(7) v = 0.4; u = repelem(v, 7) D = diag(u) Solution = M - I + D

19 days ago | 0

| accepted

Answered
How to calculate rate constant if population vs time table data is given?
Hi @Arun, Looks like you want to find the value of to fit the data into the differential equation: The analytical solution ...

19 days ago | 0

Answered
Divergent solution using ode45
Hi @Abhik Saha If you reduce the value for , then the system should be stable. For more info, please check out Floquet theory....

20 days ago | 0

Answered
How can I compute the Area and the Centroid of the following shape?
Hi @M If your intention is to find the defuzzified output value for membership function mf at the interval in x using the centr...

21 days ago | 1

Answered
Solve nonlinear equation with a changing parameter
Hi @Mei Cheng Check if this is the plot you desire: x = linspace(0.1, 0.2, 101); A = 1.0764e-6./(0.4-2.*x).^3; B = (0.830...

21 days ago | 0

| accepted

Answered
Plot (@ 1 MHz) using MATLAB: (a) Electric field (b) Magnetic field (c) Total power flow
Hi @KANISHK, You want to plot something like this? n = 6; x = linspace(0, n*pi, n*1801); z = sin(x); y = zeros(1, length(x)...

21 days ago | 0

Answered
I need to derive the equation of motion that describes the movement of the lower leg as a function of theta in order to calculate and plot displacement,velocity,acceleration?
Hi, I don't think that MATLAB has a toolbox to intelligently search and derive the mathematical model from a list of all governi...

23 days ago | 0

Answered
Finding root of nonlinear functions
Hi @University Glasgow Read about fzero(). https://www.mathworks.com/help/optim/ug/fzero.html The solution may look like this...

24 days ago | 0

Answered
What is the best function of the following shape?
Hi @M The original code was accidentally highlighted and deleted due to sensitive touchpad. It was constructed based on @Torste...

25 days ago | 1

| accepted

Answered
Tuning PI, PD, PID controller
Not sure what happened. But it works for both auto and manual tuning. % Plant Gp = tf(1, [1 10 20]) % PID (Auto) Gc1 = ...

26 days ago | 0

Answered
Is there a way to see and understand the steps of reduction while this equation gets solved for V? The result should be somewhere around 6. Thank you.
Hi @Karl The equation is super long with many parentheses and it's hard to interpret without spaces. Maybe you can view it this...

26 days ago | 0

| accepted

Answered
How to find RMSE of ground robot simulation ..?
Hi @Paarth Perhaps you are talking about the mobile robot's travelled path and the planned path. This probably works provided ...

26 days ago | 0

Answered
Create a graph with square function of period different to 2π
Hi @Ricard Escriva Maybe like this? t = linspace(0, 24, 2401); duty1 = 100*10/24; % 10 hours in percentage dela...

26 days ago | 0

| accepted

Answered
How can i combine 5 curves in one figure?
Hi @Maria, I didn't clean up the code. But more or less, the hold is used. You can also set the LineColor so that it appears as...

26 days ago | 0

| accepted

Answered
How can I integrate a function related to the modified bessel function of the first kind?
Hi @祥宇 崔 Have you checked if this besseli() function for Modified Bessel function of first kind is applicable for your case? h...

26 days ago | 0

Load more