MATLAB: How to change a variable’s name to an excel sheet name

bad ideaexcelnaming variablexlsfinfoxlsread

I'm sure there is an easy answer to this, but I haven't used Matlab in a while and am a bit rusty.
I am wanting to import data from an excel file with multiple sheets, then name each variable the sheet name. Here's what I have so far, but maybe there is a better way…
[STATUS, SHEETS] = xlsfinfo('022117_EIS_Data.xls'); % Use user selected info
isempty = zeros(61,5);
for i = 1 : max(size(SHEETS))
isempty = xlsread('022117_EIS_Data.xls',i);
end
Basically I was hoping to rename 'isempty' every loop as the current excel sheet (saved in SHEETS)

Best Answer

Don't do that. isempty() is a built-in function. There is no way you should override this function with anything.
Nor do you want to create variables with names derived/determined by some cell contents of the workbook. How would you know how to reference those variables later in your program if you don't know their name until runtime? This is a bad idea.