I'm using the below command to export my plot into a jpeg file:
exportgraphics(h, File_W, 'Resolution', 600);
It works well except one issue. The system will automatically crop the figure to the smallest possible without losing any information. However, that's not what I want.
Is there a way I could add a predefined margin/gap, e.g., 20 pixels to the top, bottom, left and right?