MATLAB CODE TO FIND LOCAL EXTREMA OF A FUNCTION

36 visualizaciones (últimos 30 días)
ASHOK VARDHAN
ASHOK VARDHAN el 13 de Ag. de 2019
Respondida: Prashanth B el 12 de Feb. de 2022
what is the matlab code to identify local extrema of follwing function f(x,y)=x^2+y^3-3*x*y , -5<=y<=5

Respuestas (3)

Torsten
Torsten el 13 de Ag. de 2019
syms x y
f = x^2 + y^3 - 3*x*y;
fx = diff(f,x);
fy = diff(f,y);
eqns = [ fx == 0, fy == 0];
vars = [x y];
[solx, soly] = solve(eqns, vars)

HARSHAVARDINI KRISHNAN
HARSHAVARDINI KRISHNAN el 21 de En. de 2021
syms x y
f = x^2 + y^3 - 3*x*y;
fx = diff(f,x);
fy = diff(f,y);
eqns = [ fx == 0, fy == 0];
vars = [x y];
[solx, soly] = solve(eqns, vars)

Prashanth B
Prashanth B el 12 de Feb. de 2022
I=

Categorías

Más información sobre Descriptive Statistics en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by