I tried to do it on my own using the already discussed question
"How do I obtain information about the background color of a cell in an Excel spreadsheet using MATLAB 7.8 (R2009a) ?"
cellcolor = cell(numofrows,numofcols);
ind_colored_cell = ~cellfun(@isempty, cellcolor);
for ind_c = 1:numofcols
if floor(ind_c/26) < 2
colname = char(65 + ind_c -1);
elseif (2 < floor(ind_c/26))&& (floor(ind_c/26) < 26)
colname = char(65 + floor(ind_c/26)-1);
colname(2) = char(65 + ind_c -26*floor(ind_c/26) -
end
for ind_r = 1:numofrows
if ind_get_color(ind_r,ind_c)
cellname = [colname int2str(ind_r)];
Range = E.Range(cellname);
Range.Interior.Color;
cellColor = Range.Interior.
cellColorBinary = dec2bin(cellColor,
colorB = bin2dec(cellColorBinary(1:8));
colorG = bin2dec(cellColorBinary(9:16));
colorR = bin2dec(cellColorBinary(17:24));
if ~(colorB == 255 && colorG == 255 && colorR == 255)
ind_colored_cell(ind_r,ind_c) = 1;
cellcolor(ind_r,ind_c) = {[colorB colorG colorR]};
end
end
end
end