Hello all, I ran this code many times and have never received this result. I have read about it in: http://www.mathworks.com/matlabcentral/newsreader/view_thread/290218, and I even tried to add a clear at the end, but it doesn't seem to help. The Code that I have is:
dir_name = parms.dir_load_data;dir_list = dir(strcat(dir_name,'\*.mat'));file_names = {dir_list.name};count = 1;% enumerate on cells
for i = 1:length(file_names)cd(parms.dir_load_data);file_name = file_names{i};dat = load(file_name);iCell = dat.S;clear dat;clearvars -except parms i bSaveDataCells vec_age vec_arena_type file_names;
However when I get to file 38 it crashes, with:
"Error using loadCan't read file C:\Users\elib\Work\data\HD vs MD - For BlindRats\Squares\198-Cell_r11207_d140605_s01_t1_c5.mat.Error in calc_HD_dist_not_absolute (line 45) dat = load(file_name);"
Thanks in advance
Best Answer