MATLAB: How to put all the element in multidimesional array

multidimensional array

I have around 118 chemical element and I would like to put it in multidimesional array to make it easier for me to choose which one I would like to use. I will attached all the textfile that I would like to put in the array. Thank you in advance!

Best Answer

files = dir('*txt') ; % you are in the folder with text files
N = length(files) ;
names = {files(:).name}' ;
iwant = cell(N,1) ;
for i = 1:N
iwant{i} = importdata(files(i).name) ;
end