- 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 回表示 (過去 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!
0 件のコメント
回答 (1 件)
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:
参考
カテゴリ
Help Center および File Exchange で Get Started with Aerospace Blockset についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!