Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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!

Risposte (1)

Rijuta
Rijuta il 21 Feb 2023
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 Commenti
Harsh Rangwala
Harsh Rangwala il 26 Feb 2023
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 il 8 Mar 2023
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?

Accedi per commentare.

Categorie

Scopri di più su Data Synthesis in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by