As i asked in previous question http://it.mathworks.com/matlabcentral/answers/269266-how-to-save-whole-work-space-with-a-new-file-name-with-every-iteration#answer_210669
I tried to save my work space with a different file name for every iteration but it doesn't save any variable inside the function.? I want to save the variables of the function in every iteration.
As I am calling a function Hexagon so it runs for 20 seconds and it generates some output so I want to save work space of Hexagon function with a file name start with MS_Num and then MS_Num value every time it takes.
clcclear allclose allsizeL = 100;radius = 10;Num_MS = [1500 2000 3000 4000 5000 6000 7000 8000 9000 10000];for i = 1 : 10 MS_Num = Num_MS(i); Hexagon(sizeL,radius,MS_Num);end
I will be happy if you can guide me. Thanks
Best Answer