필터 지우기
필터 지우기

How to plot a function of 3 variables and show a slice in the same plot?

조회 수: 2 (최근 30일)
Nadia A
Nadia A 2016년 8월 15일
편집: Nadia A 2016년 8월 16일
Hi I have a function f dependent on 3 variables x,y,z. I want to plot f and also show a slice of f for a particular value of x,y,z in the same plot of f. For example let
x = -10:0.1:10;
y = -10:0.1:10;
z = -10:0.1:10;
f = x^2 + 3y^2 + exp(z);
How can i do this? Please help me out.

답변 (1개)

José-Luis
José-Luis 2016년 8월 15일
  댓글 수: 1
Nadia A
Nadia A 2016년 8월 15일
편집: Nadia A 2016년 8월 16일
Hi
Thank You, Is there a direct function to plot f? What I want is a surface plot. But how do I use it for f?
Thanks

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

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by