% Save a (string) cell to disk.
% save() and dlmwrite() don't know how:  http://www.mathworks.com/support/solutions/data/1-1CCMDO.html?solution=1-1CCMDO
function save_cell(filename, x)

fid=fopen(filename,'wt');

[rows,cols]=size(x);

for i=1:rows
  fprintf(fid,'%s\t',x{i,1:end-1});
  fprintf(fid,'%s\n',x{i,end});
end

fclose(fid);

