- 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
How can I plot a red marker on track globe viewer window?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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!
0 Kommentare
Antworten (1)
Rijuta
am 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:
2 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with Aerospace Blockset 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!