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