Extremal value of a function of two variable
Show older comments
Hi experts,
I wanna calculate the extremal value of a function, I have already coded the function up and have no idea how to calculate.
Could you please help me on how to calculate the extremal value of the function Z? Please see my code as below:
clc;clear;close all
syms x y
% x = 0:0.01:1;
% y = 0:0.01:1;
% [X, Y] = meshgrid(x,y);
U=@(x,y) 1.1966*1.5.*(1-x.^5.085).*(1-y.^2);
Pone(x,y)=diff(U,x)
Ptwo(x,y)=diff(U,y)
x = linspace(0,1,11);
y = linspace(0,1,11);
[X, Y] = meshgrid(x,y);
Z= U*(0.065*(Pone^2)+(Ptwo^2))^(0.5)
Cheers
Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!