I have converted from lat,long to UTM using automatic zone computation and using the forced zone value. Latitude and longitude are the vectors of length 4168.
zone=utmzone(latitude,longitude); % here may be dominating zone
zone=zone(1:end-1);
[X1,Y1,utmZ1] = ll2utm(latitude,longitude);
[X,Y,utmZ]=ll2utm(latitude,longitude,'wgs84',str2double(zone));
They are not giving same results as some points are in two different zones (32 and 31) . I am confused which one is correct. Attaching the two figures( first automatic, second forced)