how to plot the functions

조회 수: 2 (최근 30일)
HARSH MEHTA
HARSH MEHTA 2021년 4월 22일
답변: Divija Aleti 2021년 4월 28일
x^2 + y^3 + z^4 = f(x,y,z)
and X^2(y^3)(z^4) = f(x,y,z) how can i polt this both differently

답변 (1개)

Divija Aleti
Divija Aleti 2021년 4월 28일
Hi Harsh,
One way of plotting the functions is by using the "isosurface" function. Have a look at the following example code:
N = 10 ;
x = linspace(0,1,N) ;
y = linspace(0,1,N) ;
z = linspace(0,1,N) ;
[X,Y,Z] = meshgrid(x,y,z) ;
F = X.^2+Y.^3+Z.^4 ; %Replace this line by "F = (X.^2).*(Y.^3).*(Z.^4);" to plot your second function
isosurface(X,Y,Z,F)
Output:
Depending on how you want to show your data, there are different methods available for plotting. Do refer to the following link for more information:
Hope this helps!
Regards,
Divija

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by