# Change coordinate system, from EPSG 3003 to EPSG 32632 (i.e. WGS 84 / UTM zone 32N)

24 Ansichten (letzte 30 Tage)
Sim am 28 Jun. 2024
I have the following point with x-y-coordinates in the EPSG 3003 coordinate system:
a = [1.7202e+06 4.8998e+06]
How can change the above mentioned x-y-coordinates from EPSG 3003 to EPSG:32632 (i.e. WGS 84 / UTM zone 32N)?
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Akzeptierte Antwort

Manikanta Aditya am 30 Jun. 2024
Hi,
In MATLAB, you can use the 'projcrs' and 'projfwd' functions to transform coordinates between different coordinate reference systems (CRS).
• 'projinv' converts the coordinates from EPSG 3003 to geographic coordinates (latitude and longitude).
• 'projfwd' converts these geographic coordinates to the target CRS (EPSG 32632).
% Define the point in EPSG 3003
x_epsg3003 = 1.7202e+06;
y_epsg3003 = 4.8998e+06;
% Define the source and target CRS
sourceCRS = projcrs(3003);
targetCRS = projcrs(32632);
% Transform the coordinates from EPSG 3003 to EPSG 32632
[lat, lon] = projinv(sourceCRS, x_epsg3003, y_epsg3003); % Convert to geographic coordinates (latitude and longitude)
[x_epsg32632, y_epsg32632] = projfwd(targetCRS, lat, lon); % Convert from geographic coordinates to target CRS
% Display the results
fprintf('Coordinates in EPSG:32632: (%f, %f)\n', x_epsg32632, y_epsg32632);
Coordinates in EPSG:32632: (720189.814410, 4899709.877584)
Refer to the following documentation to know more about:
Hope this helps!
##### 2 KommentareKeine anzeigenKeine ausblenden
Sim am 30 Jun. 2024
Thanks!
Manikanta Aditya am 1 Jul. 2024
Welcome @Sim!

Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu Coordinate Reference Systems finden Sie in Help Center und File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by