hgsave
hgsave (filename) hgsave (h, filename) hgsave (h, filename, format) Save graphics objects, with their descendants, to a file; H defaults to the current figure. A file name without extension gets ".ofig". FORMAT is an option of the save command, for example "-v7". The file can be read back with hgload. New code should prefer savefig.