[Functionality] printdmfile function and print -dmfile syntax [Result] Errors [Use Instead] savefig function or the figure menu [Compatibility Considerations] 
Remove all instances of printdmfile and print -dmfile. To save a figure to a file, use the hgsave function with the .fig extension, or use File > Generate Code on the figure menu instead.