home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / PLOTXYZ.DI$ / CONTOURC.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  1.1 KB  |  26 lines

  1. function cout = contour(arg1, arg2, arg3, arg4, arg5);
  2. %CONTOURC Contour computation.
  3. %    CONTOURC calculates the contour matrix C for use by CONTOUR
  4. %    to draw the actual contour plot.
  5. %    C = CONTOURC(Z) computes the contour matrix for a contour plot
  6. %    of matrix Z treating the values in Z as heights above a plane.
  7. %     C = CONTOURC(X,Y,Z), where X and Y are vectors, specifies the X- 
  8. %    and Y-axes for the contour computation.
  9. %     CONTOURC(Z,N) and CONTOURC(X,Y,Z,N) compute N contour lines, 
  10. %     overriding the default automatic value.
  11. %     CONTOURC(Z,V) and CONTOURC(X,Y,Z,V) compute LENGTH(V) contour 
  12. %    lines at the values specified in vector V.
  13. %     
  14. %     The contour matrix C is a two row matrix of contour lines. Each
  15. %    contiguous drawing segment contains the value of the contour, 
  16. %    the number of (x,y) drawing pairs, and the pairs themselves.  
  17. %    The segments are appended end-to-end as
  18. %         C = [level1 x1 x2 x3 ... level2 x2 x2 x3 ...;
  19. %              pairs1 y1 y2 y3 ... pairs2 y2 y2 y3 ...]
  20. %      See also CONTOUR.
  21.  
  22. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  23. %    Built-in function.
  24.