Any matlab codes for UAV trajectory generation for randomly distributed moving ground users, using any reference datasets
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello Mathwork Community,
I need a help to draw the trajectory of UAV based on the ground users mobility in cognitive Radio network in matlab. I need any reference/source codes that can be used to draw the trajectory of UAV based on the ground users mobility. I will be thankful if someone shares the informations or data in this regards.
Kind Regards!
0 comentarios
Respuestas (4)
Walter Roberson
el 3 de Jun. de 2022
I suggest that you use animatedline() to draw the trajectory.
If you create a scatter() of the user locations and you record the handle returned by scatter(), then you can update the XData and YData properties of the handle in order to move the users efficiently.
Your question does not include any information about how to decide where to move the UAV
0 comentarios
Khalid Khan
el 3 de Jun. de 2022
1 comentario
Walter Roberson
el 3 de Jun. de 2022
That is code to move the users, but does not appear to have anything for the UAV.
Walter Roberson
el 3 de Jun. de 2022
ux = randi(100);
uy = randi(100);
L = animatedline(ux, uy);
xlim([0 100])
ylim([0 100])
for K = 1 : 100
ux = ux + randi([-15 15]);
uy = uy + randi([-15 15]);
addpoints(L, ux, uy);
drawnow;
end
... using animatedline just like I said originally
1 comentario
Walter Roberson
el 3 de Jun. de 2022
See also https://www.mathworks.com/matlabcentral/answers/1732510-during-the-moving-random-points-i-don-t-see-animation-instead-i-see-re-scattering#comment_2196170
Ver también
Categorías
Más información sobre UAV 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!