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
Harish Sasikumar (2021). 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 .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!