Please how can I save a variable in a folder each time i run my script.
For instance, I have two outputs; test=[2,5,8] and test=[1,2,3] by runing the script twice.
I use save ('data.mat','test'); to save the variable as data.mat file. But each time i run the script for the second time it replaces the first .mat file.
Is there any way it could be save as data1.mat, data2.mat ......data20.mat (if i run the script 20 times) so that i can call it for later use?
Also, an insight on how to load all the .mat files will be appreciated