[Index for ./FDCONT] [Return to Master Index]

fdcontour

(./FDCONT/fdcontour.m)


Function Synopsis

cmap=gen_cmap(ncolorbase,nband,cmaptype)

Help text

FDCONTOUR contour FE scalar on FD grid
   FDCONTOUR accepts a scalar field from a FEM domain and
   an FD grid in bfd form, and contours the FE scalar on the
   FD grid, using MATLAB's contourf routine for filled color
   bands.

   Input: bfd  - big finite difference array (see GENBFD)
          qfe  - the scalar on FE nodes
          qmin - lower limit of scalar to contour
          qmax - upper limit of scalar to contour
          dq   - contour bandwidth (not the number of contours!!)
          cb   - colorbar flag (0=no colorbar,1=colorbar)

   Output: [c,h,hcb] - same vaules that contourf returns
                       plus the axes handle to the colorbar
                       if drawn (cb=1)

   Call as: 
        >> fdcontour(bfd,qfe)
        >> fdcontour(bfd,qfe,qmin,qmax)
        >> fdcontour(bfd,qfe,qmin,qmax,dq)
        >> fdcontour(bfd,qfe,qmin,qmax,dq,cb)
        >> [c,h,hcb]=fdcontour(bfd,qfe,qmin,qmax,dq,cb)
        
   Written by: Brian Blanton (Spring 99); based
               on Chris E. Naimie's colorband routines.

Cross-Reference Information

This function calls

Produced by mat2html on Tue Feb 2 16:15:45 EST 1999
Cross-Directory links are: OFF