I am using MATLAB R2010b. I am doing clustering with k-means algorithm. And everytime it is executed, it always shows different result. And I want it to be saved, always, in Excel.
Here is the snippet of my code:
y = [data x];
xlswrite('clustering.xls', y, 'KMEANS', 'A1');
As I said before; everytime it is executed, it shows different result, so the clustering.xls is always updated, updated, and updated--without saving the old file. I want to save all the history. The only thing I think that can be solved this problem, is users rename their own file--but it is not efficient. So, I think I need a messagebox to let user enter the name of their xls file.
How to make it possible? Any idea?
I appreciate all the answers.
Thank you.