필터 지우기
필터 지우기

How to plot a function of two variable

조회 수: 2 (최근 30일)
manish kumar
manish kumar 2019년 2월 7일
댓글: manish kumar 2019년 2월 7일
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
madhan ravi
madhan ravi 2019년 2월 7일
Which version are you using and you want a 2D plot in 3D space or 3D plot in 3D space?
manish kumar
manish kumar 2019년 2월 7일
2018a version
if you can help me out on both plot. it will be helpful

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2019년 2월 7일
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)

추가 답변 (1개)

Torsten
Torsten 2019년 2월 7일
https://de.mathworks.com/help/matlab/ref/surf.html

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by