home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / utils / mathstud / x101.m < prev   
Encoding:
Text File  |  1995-05-19  |  194 b   |  11 lines

  1. function y=x101(n)
  2. %y=x101(n)
  3. %return a n-point vector linearly spaced -1 to 1
  4.  
  5. %       S.Halevy 7/31/92
  6. %       Copyright (c) 1992 by the MathWizards
  7.  
  8.  
  9. y= ((0:(n-1))/(n-1) - 0.5)*2;
  10.  
  11.