You can use the “saveas“ command to save your figure to a specific file format.
Refer to this documentation for more information :
You can also refer to this MATLAB Answer as well :
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!