home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 3.ddi / DEMOS.DI$ / CPLXGRID.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  258 b   |  11 lines

  1. function z = cplxgrid(m)
  2. %CPLXGRID Polar coordinate complex grid.
  3. %    Z = CPLXGRID(m) is an (m+1)-by-(2*m+1) complex polar grid.
  4. %    See CPLXMAP.
  5.  
  6. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  7.  
  8. r = (0:m)'/m;
  9. theta = pi*(-m:m)/m;
  10. z = r * exp(i*theta);
  11.