Hello,
I am trying to apply a script in Compose 2017.3, which eliminates some of the variables in the workspace when saving them as a .mat file. In order to test the issue, please load the variables in the attached .mat file in the workspace.
When you load the attached .mat file, many variables will be available in the workspace. I would like to save these variables in another .mat file called 'berker4.mat', but I would like to eliminate 'savePath' and 'output_file' variables. In Matlab 2016a, I am using the following command:
save('berker4.mat', '-regexp', '^(?!(savePath|output_file)$).', '-v7.3');
This command eliminates the variables I mentioned. When I use the same command in Compose 2017.3, 'berker4.mat' ends up empty. I noticed that 'regexp' is available in Compose. Should I parameterize the variables to be omitted in a different way?
I appreciate if you can help me.
Thank you
Berker Bilgin
Unable to find an attachment - read this blog