Answered
how can optimize the width of member function of fuzzy in MATLAB using Ant Colony
Hi @wissam alansari I can't find the Ant Colony Optimization algorithm in MATLAB, and I don't understand the limit that you are...

2 years ago | 0

Answered
How to define initial conditions without getting an array error
Hi @Gabriela, The initial values can be specified as scalar values, without using array indexing method. tspan = [0 30]; %...

2 years ago | 0

Answered
How do I plot the infinite norm of a matrix on a graph?. I should have a square but I end up having a circle
Hi @Muhideen Ogunlowo Perhaps you want to plot something like this: p = [1, 2^1, 2^2, 2^3, 2^4]; for j = 1:length(p) f...

2 years ago | 0

Answered
How to run a simulink model from a matlab file with different inputs each step?
Hi @Sebastian Thank you for your clarifications. Now that we understand your controller has internal state dynamics, it's impor...

2 years ago | 0

Answered
How to find the Transfer function of a Simulink output plot?
Hi @Atefeh Think you want to apply the curve-fitting method to fit the sinusoidal model to the time-series data. load('V_I.mat...

2 years ago | 1

| accepted

Answered
Why I am getting "Matrix is singular to working precision"?
Hi @Shakil I attempted to replicate the results that displayed the warning message 'Matrix is singular to working precision.' F...

2 years ago | 0

Answered
Can anyone please Explain this model to me in text format
Hi @Mohamed Althaf Considering the level of sophistication evident in the Simulink model you have developed, I presume that you...

2 years ago | 1

| accepted

Answered
Task space control of a robot through dynamics
Hi @Szymon Blazejewicz This Simulink example shows you how to generate the trajectories for the end effector of the robot manip...

2 years ago | 0

Answered
Help me plot the solution in graph
Hi @Hung, I'll show you another two ways of plotting the line equations. syms x y % specify the two line equations eqn1 ...

2 years ago | 0

Answered
How can I train ANFIS using Particle Swarm Optimization algorithm ?
Hi @Ahmad To achieve a lower prescribed error measure, you can manually increase the number of Membership Functions until the d...

2 years ago | 2

Answered
How to put the fis I designed in Fuzzy Logic Designer App to Simulink?
Hi @JingChong Ning Follow these steps, and it should work. Suppose you have designed a fuzzy logic system and named it "myFuzzy...

2 years ago | 0

Answered
Element Wise Matrix multiplication issue (.*)
Hi @Yuvraaj Pasumarthy If you want to examine the effects of varying the beta values while keeping zeta and mu fixed, the struc...

2 years ago | 1

Answered
Writing a system of ODEs for ode45
Hi @Noob, Your code is unfinished, and when you run it, MATLAB will throw an error message. You can also try solving the ODE by...

2 years ago | 0

Answered
MATLAB code for fuzzy logic based battery scheduling for 24 hours in microgrid to minimize cost and grid dependency
Hi @REENA I can fix the warning message in the fuzzy system. Could you please interpret the meaning of the output values for me...

2 years ago | 1

Answered
How to solve this equation?
Hi @Ali Almakhmari, It seems that there are no real solutions for . From the graph, we can see that we need to lower the quadra...

2 years ago | 1

| accepted

Answered
Linear Driving Force Model for Gas Adsorption in Fixed Bed
Hi @JUBAIR AHMED SHAMIM Editted to run your supplied code. The state responses (Tbed, Twater, Tgas) converge to the same value ...

2 years ago | 2

| accepted

Answered
How to solve 2nd order coupled differential equations?
Hi @Gloria, If there are time-dependent elements in the mass matrix, the idea is to define the generalized 'Mass' matrix in ode...

2 years ago | 1

Answered
How to use harmonic fitting method
Hi @TTA, I'm interpreting your 'Harmonic' model as the 'Sum of Sine' model. If this is not the case, then you will need to crea...

2 years ago | 1

| accepted

Answered
Simulation step size in simulink is very small and takes really long to run. Unable to solve it
Hi @Suhas Raghavendra Kulkarni, It's not bad for a beginner in Simulink to create a rather sophisticated model using mostly use...

2 years ago | 0

Answered
MATLAB code for fuzzy logic based battery scheduling for 24 hours in microgrid to minimize cost and grid dependency
Hi @REENA There are many syntax errors because the name and behavior of some functions in Fuzzy Logic Toolbox have changed sinc...

2 years ago | 2

| accepted

Answered
Solving system of odes with a power using ode45
Hi @Thomas TJOCK-MBAGA I presume that Xinit is not equal to , and . I tested this with the ode45 solver, and it also works with...

2 years ago | 2

| accepted

Answered
Need Help with MATLAB Fuzzy Clustering - Trouble Implementing Example
Hi @Baptiste Please take a look at this example. The data set is specified as a matrix with 9 rows, each representing a data po...

2 years ago | 0

Answered
How to open simulink example in matlab?
Hi @Jagadish Babu If you cannot find the example file in the MATLAB examples directory, then it is most likely that this exampl...

2 years ago | 0

Answered
I don't know why my code makes odeToVectorField error
Hi @Student, The highest-order derivative is embedded in or D2s. Notably, one of the terms in this context is nonlinear, as d...

2 years ago | 1

Answered
How do you solve equations with multiple variables?
Hi @Ilan, some multiplication operators (*) are missing. It is working now. % List of Parameters E1f = 233; v12f = 0.200; E...

2 years ago | 2

| accepted

Answered
Application of any numerical root finding method (secant, bisection, etc.)
Hi @ABDALLA AL KHALEDI Take pride in the fact that your Bisection method yields the same result as fzero(). Cs = 0; d = 0.5; ...

2 years ago | 1

Answered
How do I solve an equation with an unknown variable?
Hi @TC Yes, there is a useful function called 'isolate()' in Symbolic Math Toolbox. If you want to do this iteratively, please ...

2 years ago | 0

Answered
Element Wise Matrix multiplication issue (.*)
Hi @Yuvraaj Pasumarthy, Update: With the values of zeta, beta, and mu provided, you can plot something. You can try experimenti...

2 years ago | 2

| accepted

Answered
How can I show the stability graph?
Hi @Can Yilmaz, The transfer function can be rewritten as where where the characteristic equation defines the behavi...

2 years ago | 0

Answered
Solving symbolic third order polynomial
Hi @Axel Degrande The trajectory position is chosen to be a cubic polynomial. From this cubic polynomial, the velocity can be...

2 years ago | 0

Load more