Answered
I want to optimize two variables
@MEKDES KASSA Since u and p are the variables, geometrically, this equation is a plane (flat surface) By varying B, the plan...

4 years ago | 1

Answered
Is it my equation wrong? Cause I get a weird graph for this equation.
Hi @Muhammad Harriz Bin Zamri Missing dot. t = 0:0.01:5; x = exp(-2*t).*tanh(4*t); plot(t, x, 'linewidth', 1.5) xlabel('t')...

4 years ago | 1

Answered
How to plot 3 membership function and find the µ of each one for a specific X ?
Hi @redha wassim brahimi You can refer to doc trapmf, and plot the membership functions. Edit: To include the firing of fuzzy ...

4 years ago | 2

| accepted

Answered
Hi! I am trying to code the Eq.8 in the picture attached. I am copying my MATLAB code for the Eq. 8.I am facing issue in for loop. Loop runs but dont gets the required resuls.
Well @ABU BAKAR, I didn't change the equations. Do the two results look the same to you? % Parameters alpha = 3/4; abc ...

4 years ago | 0

Answered
Parametrical solving a nonlinear equation. Warning: Explicit solution could not be found. > In solve at 179
Hi @Jaber Then, it implies that your equation is a transcendental equation. Here is an example: syms x y eq = x - sin(x) == y...

4 years ago | 1

| accepted

Answered
How to find the roots of a polynomial?
@Mohamed Illafe If the values for the parameters w, x, y are known, then it simplifies the matter. syms f(t, w, x, y) f(t,w,x...

4 years ago | 0

Answered
Why is error integrated in Simulink Environment Water Tank Model observations?
Hi @Timothy Thacker If my educated guess is correct, adding the integral of the error has something to do with the Watertank Mo...

4 years ago | 1

| accepted

Answered
How to find Coefficient R
Corrected. Please check. R = (sum((x-meanx).*(y-meany)))./(sqrt((sum((x-meanx).^2)).*(sum((y-meany).^2)))) r2 = R^2

4 years ago | 2

| accepted

Answered
I need an explanation of the functions in this code
Hi @Aktham Naeem Maybe the situation is less ideal than you have imagined, but I found only 7 functions that you need to unders...

4 years ago | 1

Answered
bode plot of boost converter on simulink
Hi @MURAT YILMAZ This good example shows you how to get the Bode Response of Simulink Model: https://www.mathworks.com/help/sl...

4 years ago | 0

Answered
How can I plot a three-species Lotka-Volterra model?
Hi @Hagen Gersie Read doc ode45. You can also follow the example and do something like this: sigma = 10; beta = 8/3; rho = ...

4 years ago | 3

Answered
Do my fuzzy logic correct and how to tune my PID properly using this system?
Hi @Isyraf Izuddin Plant #2 Since you didn't specify the performance criteria, the fuzzy system is designed with some impromen...

4 years ago | 1

| accepted

Answered
i want to find the solution of this second order differential equation
Possibly does not have a closed-form solution. f = @(x, y) [y(2); ... y(1)*2.869*(3.06693 - (3.125*x^0.1))]; tspan = linsp...

4 years ago | 0

Answered
How do I solve a symbolic system for a certain vector?
Hi @Vítor Narciso It's an interesting problem as mentioned by @Paul. The following does not solve your problem symbolically in ...

4 years ago | 2

Answered
how can i see a points(x,y) value from a matlab plot
Also try this: datacursormode x = linspace(-10, 10, 201); y = x.^2; plot(x, y, '.') dcm = datacursormode; dcm.Enable = 'on'...

4 years ago | 0

Answered
Please help to get answer of this particular problem, which I won't understood, If A=[1 12 15;3 16 20;5 24 25] what will be the value of 'a' if [a b]=size(A)?
@kapil Jadhav Since the matrix A is [3-by-3] matrix, then [a b] = size(A) returns a = 3 % number of rows b = 3 % numbe...

4 years ago | 1

Answered
Sine wave with variable frequency
Like this? x = linspace(0, 6*pi, 6001); y = cos(0)*sin(0.3*x.^2); plot(x, y, 'linewidth', 1.5) Use the Interpreted MATLAB ...

4 years ago | 0

Answered
set parametre fractional Transfer Function block
@bilel kanzari, try if this works: set_param('FOPID_Model3eme_critq/LOW', 'polePoly', 's^3.3 + 11s^1.7 + 32s + 25');

4 years ago | 1

| accepted

Answered
CC CV control with Frequency modulation
Hi @SALAH alatai Try following the examples on using these functions to extract the mathematical model. https://www.mathworks...

4 years ago | 0

Answered
field-oriented control for induction motor
Hi @ayoub reffai Don't give up! If you can extract the mathematical model (differential equations / state-space model) from t...

4 years ago | 1

| accepted

Answered
How to make the following shape in Matlab
Hi @Med Future Edit: Make good use from @Walter Roberson's polynomial regression model of the second pulse from the OP's second...

4 years ago | 0

Answered
my plot is not showing up
Now it should work EG = (1 + n2*Vf)./(1 - n2*Vf); %Es/Gm plot(Vf, EG);

4 years ago | 1

Answered
How to solve coupled odes with two time dependent variables with ode45?
Hi @Ari Dillep Sai Not sure what went wrong and why it is unstable. If you are absolutely sure that the absorption dynamics is ...

4 years ago | 1

Answered
Want to Plot a multi line graph in Matlab
Like this? x = 2:0.01:16; y1 = 15*x + 270; y2 = (6.6964e-04)*x.^4 - (2.6786e-02)*x.^3 + (9.0625e-01)*x.^2 - (1.2768e+01)*x + ...

4 years ago | 1

| accepted

Answered
Hello how can I change k values from MATLAB?? I need a script to control these values. Please help me!!
Okay, please use the MATLAB optimized nominal K values: Kp = 1 + sqrt(2); Ki = 1; Kd = 1 + sqrt(2);

4 years ago | 0

Answered
Create a simple map for a robot to travel on
Hi @Sebastian Jäger The following articles maybe informative for you in creating maps: https://www.mathworks.com/help/nav/re...

4 years ago | 0

Answered
Logic/formulas of temperature contoller of heat pump compressor
Hi @Anton Frik Thermal system is commonly described as a 1st-order system, thus it is common for the control logic to use Propo...

4 years ago | 0

Answered
Searching for Minimum of a function
Hi @Iliana Zheleva You should analyze the function so that you get to see where the solution might be and it allows you to gues...

4 years ago | 1

| accepted

Answered
How to tune this Transfer Function using Zieger nichols or Cohen coon
@Isyraf Izuddin There is a typo in the denominator: s^3 I think that Ziegler-Nichols and Cohen-Coon methods are more suitable...

4 years ago | 1

| accepted

Answered
1/0.8x^2+0.5x+2
Okay @Fernando Cerna Sanchez Based on the order of operations using PEMDAS: Parentheses, Exponents, Multiplication and Division...

4 years ago | 0

Load more