Experiment 3-A: 1. Draw The Surface of The Function Using Ezsurf. Solution
Experiment 3-A: 1. Draw The Surface of The Function Using Ezsurf. Solution
2. Draw the 3-D plot for the function f(t)= (t, t2, t3), where 0≤t≤ 100.
Solution:
t=linspace(0,100);
x=t;
y=t.^2;
z=t.^3;
comet3(x,y,z);
plot3(x,y,z);
xlabel('x-axis');
ylabel('y-axis');
zlabel('x-axis');
title('3D Curve')
Output:
3. Using ‘surf’ plot the surface f (x, y) = x(x2+y2).
Solution:
[x,y]=meshgrid(-2:.2:2);
f=x.*(x.^2 + y.^2);
surf(x,y,f)
Output:
Output: