oh I see that you are mixing cell arrays and arrays. With your feature structure, to access the -9 of your first line, you need to do:
So, with your structure, if you want to continue that way, you should use this code:
fnom = @(v) [(v(1:end-1) - min(v(1:end-1)))/(max(v(1:end-1))-min(v(1:end-1))), v(end)];
features = cellfun(fnom, features, 'UniformOutput', false)
Best Answer