0% found this document useful (0 votes)
14 views3 pages

Ejercicio 1) A) : (X1grid, Y1grid) Meshgrid (-4:0.1:4,-4:0.1:4) z1 X1grid. 2+y1grid. 2-25 Mesh (z1)

The document contains MATLAB code for generating mesh plots of different quadratic surface functions of x and y over the range -4 to 4. Code is provided to plot the surfaces z=x^2+y^2-25, z=2x^2+y^2-1, z=2x^2-y^2-1, z=3x^2-y, z=2x^2+2y^2, and z=2x^2-2y^2. Meshgrid and mesh commands are used to generate and plot the 3D meshes from the quadratic functions.

Uploaded by

Doris riveros
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Ejercicio 1) A) : (X1grid, Y1grid) Meshgrid (-4:0.1:4,-4:0.1:4) z1 X1grid. 2+y1grid. 2-25 Mesh (z1)

The document contains MATLAB code for generating mesh plots of different quadratic surface functions of x and y over the range -4 to 4. Code is provided to plot the surfaces z=x^2+y^2-25, z=2x^2+y^2-1, z=2x^2-y^2-1, z=3x^2-y, z=2x^2+2y^2, and z=2x^2-2y^2. Meshgrid and mesh commands are used to generate and plot the 3D meshes from the quadratic functions.

Uploaded by

Doris riveros
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

www.parcialesingenieria.com.

ar

Ejercicio 1)a)
>> [x1grid,y1grid]=meshgrid(-4:0.1:4,-4:0.1:4);
>> z1=x1grid.^2+y1grid.^2-25;
>> mesh(z1)

b)
>> [x1grid,y1grid]=meshgrid(-4:0.1:4,-4:0.1:4);
>> z1=2*x1grid.^2+y1grid.^2-1;
>> mesh(z1)
c)
>> [x1grid,y1grid]=meshgrid(-4:0.1:4,-4:0.1:4);
>> z1=2*x1grid.^2-y1grid.^2-1;
>> mesh(z1)

d)
>> [x1grid,y1grid]=meshgrid(-4:0.1:4,-4:0.1:4);
>> z1=3*x1grid.^2-y1grid;
>> mesh(z1)
Ejercicio 2)a)
>> [x1grid,y1grid]=meshgrid(-4:0.1:4,-4:0.1:4);
>> z1=2*x1grid.^2+2*y1grid.^2;
>> mesh(z1)

b)
>> [x1grid,y1grid]=meshgrid(-4:0.1:4,-4:0.1:4);
>> z1=2*x1grid.^2-2*y1grid.^2;
>> mesh(z1)

You might also like