I have large cell arrays in which a couple of entries could not be read from an excel file, since the corresponding places are empty. In my cell array I obtain: [NaN]
now I wish to replace this with an empty string: ''
this is what I tried and got:
>> raw(cellfun(@isnan,raw)) = {''};Error using cellfunNon-scalar in Uniform output, at index 1, output 1.Set 'UniformOutput' to false.>> raw(cellfun(@isnan,raw,'UniformOutput',false)) = {''};Error using subsindexFunction 'subsindex' is not defined for values of class 'cell'.
suggestions?
Best Answer