This command will produce a tmp eps-file and call gs to convert it to a pdf-file. The size of the pdf image will correspond to the figure property values, paperposition(3:4).
The size may also be included by adding the "-SXSIZE,YSIZE" option. In this case the paperposition property is ignored.
print "-S640,480" -dpdfwrite somename.pdf
Also, if the size option is included it is possible to produce pdf directly.
print "-S640,480" somename.pdf
The resolution defaults to 150 dpi (to be consistent with Matlab's default for image resolution).
Ben