- Access the FoM object
MATLAB STK Connection: How to calculate coverage time for a coverage definition
7 次查看(过去 30 天)
显示 更早的评论
I wrote a code to create a coverage definition, altering its properties, creating a Figure of Merit (FoM), and creating a satellite constellation to compute its coverage using the FoM.
The problem is extracting the FoM values using the data providers if anyone can help. Thanks in advance
0 个评论
回答(1 个)
Prathamesh
2025-5-28
I understand that you are working with STK. You wrote a code to create a coverage definition, altering its properties, creating a Figure of Merit (FoM), and creating a satellite constellation to compute its coverage using the FoM and you want to extract the FoM values using the data providers.
Here's how you can extract FoM values:
Fom = coverageDefinition.Children.Item('YourFoMName');
2. Access the Data Provider
dp = fom.DataProviders.Item('Value By Time');
3.Execute the Data Provider
result = dp.ExecElements({startTime, stopTime, timeStep});
4. Extract the data
times = result.DataSets.GetDataSetByName('Time').GetValues;
values = result.DataSets.GetDataSetByName('Figure Of Merit').GetValues;
Now times and values will contain the time series of your FoM.
Hope this helps
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!