Hi,
I have a large data set, where each filename goes as XX001 etc. each filename is also the name of the stuct in the workspace.
so i use eval to rename it:
DataFiles = dir('C:\MyFolderPath'); for i = 1:length(DataFiles) SubjectName = DataFiles(i).name; load(SubjectName); eval(['patient', ' = ', SubjectName, ';'])end
since i want my code to fit all the data, i change the names.
but then, i'm left with the original file name in the workspace.
how can i delete it?
Thank you!
Best Answer