Skip to content

hdcopy.m

Basic Information

  SYNTAX:  hdcopy(figures,keep_ps,device)

  PURPOSE:  Create hardcopy plots of figures on screen.
    (See hdcopysys.m for hardcopies of SIMULINK block diagrams.)

  INPUT:
   figures = list of figure numbers
          (optional: if omitted, current figure is plotted)
   keep_ps = set to 1 to retain postscript file (hdcopytemp.ps) in local directory,
        if a string, then plots are stored in file with that name,
            else deleted (optional, default=0)
   device  = string defining print device (optional, default='hplj21')
        - note that device can be 'eps' or 'epsc', but set
          keep_ps=1 to keep it.
               - Set device=0 to prevent printing (e.g. when keep_ps=1).

  OUTPUT:
    hardcopy plots to printer
    hdcopytemp.ps = local postscript file (if keep_ps=1)
        (or hdcopytemp.eps if device='eps' or 'epsc')

  METHOD:  Creates postscript file using matlab print command, then sends
  to printer using !lp.

Dependencies