Matlab, GIS, Shapefile, Point Cloud, Scanx.
latitude information in the variable 'n'. S(n).Geometry = 'Point'; % Create an array of Shape objects with point geometry. for i = 1:n % Iterate and store values in the S array. S(i).Lat = lat(i); % store lat info S(i).Lon = lon(i); % store lon info S(i).Geometry = 'Point'; S(i).Name = 'Point'; end