I have a function createfigure.m which creates a figure. I would like to add the possibility of automatically save or print the figure with specific stylesheet named style1 in jpeg format. How can I do this?
‘print(filename,formattype)’could be used to save or print a figure in the required format.Soto automatically print the figure you can add this function to your ‘createfigure’ function. For more information on this function refer to the following link