function xls2matfile(sourcefile__, sheetname__,destinefile__)
% Convert a xls/xlsx to MAT (destinefile__ is the name of mat file)
% This code based on csv2mat
% name,grade
% 1,56
% 2,78
% NaN,90
%
% NB: no string can be include in the file.
% Useage:  csv2mat('sourefile.csv', 'destinefile.mat');
[ndata__, headertext__, raw ] = xlsread(sourcefile__, sheetname__);
raw = dataclean(raw);
eval( [ sprintf(sheetname__) ' = raw;'] );
% save(destinefile__, raw);
      eval( ['save(''',  sprintf(destinefile__),  ''', ''', sheetname__, ''');'] );
end


