You are using char type variables, i.e filename
a = {'abc', 'aa', 'b'; 'abc1', 'aa1', 'b1'}
a =
2×3 cell array
{'abc' } {'aa' } {'b' }
{'abc1'} {'aa1'} {'b1'}
>> minmax(a)
Error using minmax (line 26)
Data{1,1} is not numeric or logical.
minmax returns two columns of minimuns and maximums of numeric data
doc minmax