I want to read E columns of every excel files which do not have equal dimensions and put them into a n*m dimensional array.
I used a function named as getAllFiles
to obtain all files in a directory. I found the function in this link: How to get all files under a specific directory in MATLAB?.
Here's my code:
fileList = getAllFiles('C:\Users\asus\Network\econimi\S&P500\P1')
for i=1:length(fileList)
A(i,:)=xlsread(fileList{i},'E:E');
end
I see following error as soon as it puts the data of the first file:
??? Subscripted assignment dimension
mismatch.