MATLAB Mathematical Analysis by César Pérez López

MATLAB Mathematical Analysis by César Pérez López

Author:César Pérez López
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


>> [X,Y] = meshgrid(-2:0.05:2);

Z=X^2-Y.^2;

subplot(2,2,1)

surf(X,Y,Z)

subplot(2,2,2)

surf(X,Y,Z),view(-90,0)

subplot(2,2, 3 )

surf(X,Y,Z),view(60,30)

subplot(2,2,4)

surf(X,Y,Z), view (- 10, 30)

>> [X,Y]=meshgrid(-2:0.05:2);

Z=X.^2-Y.^2;

surf(X,Y,Z),shading interp,brighten(0.75),colormap(gray(5))

Exercise 4-1

Represent the surface defined by the equation:

>> [x,y]=meshgrid(0:0.05:2,-2:0.05:2);

>> z=y.^2.*(x-1).^2./(y.^2+(x-1).^2);

>> mesh(x,y,z),view([-23,30])

We could also have represented the surface in the following form:

>> ezsurf('y^2*(x-1)^2/(y^2+(x-1)^2)')



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.