How to plot a function of two variable
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
manish kumar
am 7 Feb. 2019
Kommentiert: manish kumar
am 7 Feb. 2019
i want to plot
y=2x(1)^2 + 2x(2)^2 +10(1.1*x(2)^2 +3x(1)^2)^0.5
can any one help me to plot this expression ?
2 Kommentare
madhan ravi
am 7 Feb. 2019
Which version are you using and you want a 2D plot in 3D space or 3D plot in 3D space?
Akzeptierte Antwort
KSSV
am 7 Feb. 2019
x1 = 0:0.01:1 ; % use your limits
x2 = 0:0.01:1 ; % use your limits
[x1,x2] = meshgrid(x1,x2) ;
y=2*x1.^2 + 2*x2.^2 +10*(1.1*x2.^2 +3*x1.^2).^0.5 ;
surf(x1,x2,y)
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!