Example: Save variables & figures in a seperate folder

This is a complete & commented block of code to save variables & figures in a seperate folder
72 Downloads
Updated 27 Mar 2015

View License

This block of code
1) creates a new folder by the name 'Output' (inside current folder)
2) saves all the current variables into that folder
3) saves a graph/figure (in .fig & .jpeg formats) into that folder

Cite As

Harish Sasikumar (2024). Example: Save variables & figures in a seperate folder (https://www.mathworks.com/matlabcentral/fileexchange/50317-example-save-variables-figures-in-a-seperate-folder), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Workspace Variables and MAT-Files in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0