User Tools

Site Tools


gibson:teaching:fall-2013:math445:lab9

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gibson:teaching:fall-2013:math445:lab9 [2013/11/06 19:05]
gibson created
gibson:teaching:fall-2013:math445:lab9 [2013/11/06 19:09] (current)
gibson [Problem 1: pcolor, meshgrid, shading, subplot]
Line 6: Line 6:
 ===== Problem 1: pcolor, meshgrid, shading, subplot ===== ===== Problem 1: pcolor, meshgrid, shading, subplot =====
  
-Skim the Matlab documentation for ''​linspace,​ meshgrid,''​ and ''​pcolor''​. Create a 2D mesh from −π to π with 30 points in both the //x// and //y// directions. Then for each position in the mesh let //z = cos(x) sin(y)//. Use ''​pcolor,''​ ''​axis equal,''​ and ''​axis tight''​ to generate ​the figure ​on the left. But don't you hate those ugly black lines? You can get rid of them with the ''​shading''​ command. Use ''​subplot''​ and the ''​shading''​ command to generate the figure on the right+Skim the Matlab documentation for ''​linspace,​ meshgrid,''​ and ''​pcolor''​. Create a 2D mesh from −π to π with 30 points in both the //x// and //y// directions. Then for each position in the mesh let //z = cos(x) sin(y)//. Use ''​pcolor,''​ ''​axis equal,''​ and ''​axis tight''​ to generate ​this figure:
  
-{{:​gibson:​teaching:​fall-2012:​math445:​a.png?​nolink&​300|}} {{:​gibson:​teaching:​fall-2012:​math445:​lab10-fig2.png?​nolink&​300|}}+{{:​gibson:​teaching:​fall-2012:​math445:​a.png?​nolink&​500|}} 
 + 
 +But don't you hate those ugly black lines? You can get rid of them with the ''​shading''​ command. Use ''​subplot''​ and the ''​shading''​ command to generate this figure: 
 + 
 +{{:​gibson:​teaching:​fall-2012:​math445:​lab10-fig2.png?​nolink&​500|}}
  
  
gibson/teaching/fall-2013/math445/lab9.1383793550.txt.gz · Last modified: 2013/11/06 19:05 by gibson