Nice job but I believe there is a small problem.
xlwrite is able to create an xlsx file with multiple worksheets which I can open with Excel but I cannot read this file with xlsread. However, if I open the xlsx file with excel and then simply hit save (ostensibly making no changes), I can then open with xlsread.
@Gaurav and others facing that bug,
This may be due to some unexpected formatting in some description xml file(s) in the xlsx.
If you have write access to the matlab installation, you can fix it by editing the file
replace line 12 with:
'<Relationship Id="rId(\d+?)" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/.*\.xml"\s*/>', ...
and line 19 with:
['<sheet name=".*(?<=<sheet name=")(?<sheetName>.+?)(?=" sheetId=".*" r:id="rId' num2str(sheetIDs(i)) '"\s*/>)'], ...
I have not tested this fix extensively but I think it should not cause problems with other files.
Sorry for hijacking your comment section, but this is the number one page on google at the moment for that issue.