# lab09 - >> surf(A,B,D) This command essentially fills...

This preview shows pages 1–2. Sign up to view the full content.

Matlab 9 >> x=-1:.25:4; This command is entered to define the x values. >> y=-2:.25:3; This command is entered to define the y values. >> [A,B]=meshgrid(x,y); This command created a grid made up of the x,y points. >> D=12-3*A+2*B This is entered to add the z-vector component to the graph, making it 3-D. >> mesh(A,B,D) This command graphs the x,y points and the z-vector as a mesh grid. >> surf(A,B,D) This command essentially fills in the “squares” of the grid to form a surface plot/ -1 0 1 2 3 4 -2 0 2 4 -5 0 5 10 15 20 25 >> x=-3:.3:3; This command is entered to define the x values. >> [A,B]=meshgrid(x,x); This command created a grid made up of the x,x points. >> D=18-A.^2-B.^2; This is entered to add the z-vector component to the graph, making it 3-D. >> mesh(A,B,D) This command graphs the x,x points and the z-vector as a mesh grid.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: >> surf(A,B,D) This command essentially fills in the “squares” of the grid to form a surface plot. Matlab 9-4-2 2 4-4-2 2 4 5 10 15 20 >> x=-2:.2:2; This command is entered to define the x values. >> y=-3:.3:3; This command is entered to define the y values. >> [A,B]=meshgrid(x,y); This command created a grid made up of the x,y points. >> D=B.^2-2*A.^2; This is entered to add the z-vector component to the graph, making it 3-D. >> mesh(A,B,D) This command graphs the x,y points and the z-vector as a mesh grid. >> surf(A,B,D) This command essentially fills in the “squares” of the grid to form a surface plot.-2-1 1 2-4-2 2 4-10-5 5 10...
View Full Document

## This document was uploaded on 07/10/2011.

### Page1 / 2

lab09 - >> surf(A,B,D) This command essentially fills...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online