Is it possible to simulate UE mobility using latitude and longitude coordinates?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hudson Romualdo
am 1 Okt. 2024
Kommentiert: Hudson Romualdo
am 21 Okt. 2024
I'm studing the example "CreateConfigureAndSimulate5GNRNodesExample.mlx".
In this example you can add mobility to a UE using the method:
addMobility(ue,BoundaryShape="rectangle")
But, if I have coordinates from my cenario and UE by along the time (a list of diferent lon,lat coods from user monitoring, for example) it is possible to simulate the mobility using this data?
0 Kommentare
Akzeptierte Antwort
akshatsood
am 9 Okt. 2024
Bearbeitet: akshatsood
am 9 Okt. 2024
As I understand, you have time-based latitude and longitude data for the User Equipment (UE) obtained through monitoring, and you are exploring the possibility of simulating mobility using this data.
According to the documentation for the "addMobility" function, it does not explicitly allow specifying positions as one of its attributes. It primarily focuses on defining speed range and pause duration for the UE node. Therefore, it seems unlikely that you can directly simulate UE mobility using your data with this function.
However, when creating an "nrUE" object to configure New Radio (NR) UE nodes in MATLAB, you have the flexibility to specify the node's position using a 3D Cartesian coordinate system. Since you already have latitude and longitude data, you can convert these geographic coordinates into a 3D coordinate system using a conversion function.
Below is a function that demonstrates how to perform this conversion to 3D Cartesian coordinates:
function [x, y, z] = latLonToCartesian(lat, lon)
% Earth's radius in meters
R = 6371000;
% Convert latitude and longitude from degrees to radians
latRad = deg2rad(lat);
lonRad = deg2rad(lon);
% Calculate Cartesian coordinates
x = R * cos(latRad) * cos(lonRad);
y = R * cos(latRad) * sin(lonRad);
z = R * sin(latRad);
end
I hope this helps.
3 Kommentare
akshatsood
am 19 Okt. 2024
Bearbeitet: akshatsood
am 19 Okt. 2024
I would like to add an important note to this answer, which should be more helpful for you. Specifically, I would like to direct your attention to the following documentation
The purpose of mentioning the above reference this is two-fold.
- The documentation provides a variety of useful transformation functions that support various coordinate systems. For your use case, the following two functions are suitable
- Also, the functions are designed to take into account the Earth ellipsoid model, as opposed to the simpler spherical model I have asssumed earlier. The ellipsoid model provides a more precise representation of the Earth's shape, which is essential for applications requiring high accuracy. By employing these transformation functions, you can obtain results that are accurate and also compatible with real-world scenarios.
I hope this helps.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!