MATLAB: How to put a name on each double variable in a cell array”

cell arrayvariable name

Hi guys,
I am trying to load all the data, as a numberic array, into a cell array K, but I wand to be able to identity which file the data came from which require me to name all numeric array in the cell array. How can I do that?

Best Answer

You could have an associated cell array for the file names. E.g.,
fnames{i,j} = fn;