how to convert decimal degree to utm using loops ?
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Akim Mahmud
      
 el 8 de En. de 2018
  
    
    
    
    
    Comentada: ANKUR KUMAR
      
 el 8 de En. de 2018
            I have this X ( 51 by 51 ) and Y ( 51 by 51 ) lat and lon matrix and I want to convert them to UTM using the deg2utm function in a loop. deg2utm function says [x,y,utmzone] = deg2utm(lat,lon)
I am not how to loop to though the my X and Y matrix in this case. any help would be highly appreciated. Thanks
Respuesta aceptada
  ANKUR KUMAR
      
 el 8 de En. de 2018
        
      Editada: ANKUR KUMAR
      
 el 8 de En. de 2018
  
      Firstly do the meshgrid of lon lat.
[lon_new,lat_new]=meshgrid(lon,lat);
for i=1:size(lon_new,1)
    for ii=1:size(lon_new,2)
      C(i,ii)= deg2utm(lon_new(i,ii),lat_new(i,ii));
    end
end
I haven't run this code yet. If your problem is still is not resolved, please attach the .mat file.
5 comentarios
  ANKUR KUMAR
      
 el 8 de En. de 2018
				I have written the complete the complete code, so that others can understand too.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Multidimensional Arrays en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

