How can I plot a red marker on track globe viewer window?

2 次查看(过去 30 天)
I am trying to plot a marker and give it a blinking effect whenever there are some changes in readings. I am looking for a way to create a marker on the "track globe viewer window." I am using this example: Simulate and Track En-Route Aircraft in Earth-Centered Scenarios.
My viewer is:
viewer = trackingGlobeViewer('Basemap','streets-dark',...
'TrackLabelScale',1.3,'TrackHistoryDepth',4000,...
'CoverageMode','Coverage');
So far I have tried using plot function:
Using this creates a separate figure, which I don't want:
plot(0,0,'ro','MarkerSize',10,'MarkerFaceColor','r','MarkerEdgeColor','r');
And using this gives out an error:
plot(viewer,'ro','MarkerSize',10,'MarkerFaceColor','r','MarkerEdgeColor','r');
I want to plot a red marker at the bottom right corner of the "track globe viewer window". Please let me know
if there are any functions or any way to do that.
Thank you very much!

回答(1 个)

Rijuta
Rijuta 2023-2-21
Hi Harsh,
I understand that you are trying to plot a marker and give it a blinking effect.
To plot a marker on the track globe viewer window ‘plot3m’ function can be used. This function is specifically designed for plotting on a 3D globe and is part of the Mapping Toolbox in MATLAB. Timer objects in MATLAB can be used to make the marker blink whenever there is a change in the readings.
Please follow the below mentioned steps for the same:
  • Create the tracking globe viewer
  • Create a new map axes
  • Get the limits
  • Define the marker location
  • Plot the marker as a red circle
  • Create a timer object to toggle
  2 个评论
Harsh Rangwala
Harsh Rangwala 2023-2-26
Thank you very much for the answer. Could please show me an example on how to create a new axis for the track globe viewer? Also what do you mean by get limits?
Harsh Rangwala
Harsh Rangwala 2023-3-8
I dont think plot3m function can create objects onto trackGlobeViewer. I tried creating axes onto the viewer but I keep getting error. Am I understanding your steps correctly?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Synthesis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by