このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。
accessIntervals
説明
は、入力ベクトル acinterval = accessIntervals(ac)ac 内の各 access オブジェクトに対応するアクセス ステータスが true である間隔のテーブルを返します。
例
衛星シナリオを作成し、緯度と経度から地上局を追加します。
startTime = datetime(2020,5,1,11,36,0); stopTime = startTime + days(1); sampleTime = 60; sc = satelliteScenario(startTime,stopTime,sampleTime); lat = 10; lon = -30; gs = groundStation(sc,lat,lon);
ケプラーの要素を使用して衛星を追加します。
semiMajorAxis = 10000000;
eccentricity = 0;
inclination = 10;
rightAscensionOfAscendingNode = 0;
argumentOfPeriapsis = 0;
trueAnomaly = 0;
sat = satellite(sc,semiMajorAxis,eccentricity,inclination, ...
rightAscensionOfAscendingNode,argumentOfPeriapsis,trueAnomaly);シナリオにアクセス解析を追加し、衛星と地上局間のアクセス間隔の表を取得します。
ac = access(sat,gs); intvls = accessIntervals(ac)
intvls=8×8 table
Source Target IntervalNumber StartTime EndTime Duration StartOrbit EndOrbit
_____________ __________________ ______________ ____________________ ____________________ ________ __________ ________
"Satellite 2" "Ground station 1" 1 01-May-2020 11:36:00 01-May-2020 12:04:00 1680 1 1
"Satellite 2" "Ground station 1" 2 01-May-2020 14:20:00 01-May-2020 15:11:00 3060 1 2
"Satellite 2" "Ground station 1" 3 01-May-2020 17:27:00 01-May-2020 18:18:00 3060 3 3
"Satellite 2" "Ground station 1" 4 01-May-2020 20:34:00 01-May-2020 21:25:00 3060 4 4
"Satellite 2" "Ground station 1" 5 01-May-2020 23:41:00 02-May-2020 00:31:00 3000 5 5
"Satellite 2" "Ground station 1" 6 02-May-2020 02:50:00 02-May-2020 03:39:00 2940 6 6
"Satellite 2" "Ground station 1" 7 02-May-2020 05:58:00 02-May-2020 06:47:00 2940 7 7
"Satellite 2" "Ground station 1" 8 02-May-2020 09:06:00 02-May-2020 09:56:00 3000 8 9
シナリオを再生して地上局を可視化します。
play(sc)

衛星シナリオを作成します。
startTime = datetime(2020,5,1,11,36,0); stopTime = startTime + days(1); sampleTime = 60; sc = satelliteScenario(startTime,stopTime,sampleTime); lat = 10; lon = -30;
衛星シナリオで指定された軌跡を使用してプラットフォームを追加します。
trajectory = geoTrajectory([40.6413,-73.7781,10600;32.3634,-64.7053,10600],[0,2*3600],AutoPitch=true,AutoBank=true); pltf = platform(sc,trajectory);
ケプラーの要素を使用して衛星を追加します。
semiMajorAxis = 10000000;
eccentricity = 0;
inclination = 10;
rightAscensionOfAscendingNode = 0;
argumentOfPeriapsis = 0;
trueAnomaly = 0;
sat = satellite(sc,semiMajorAxis,eccentricity,inclination, ...
rightAscensionOfAscendingNode,argumentOfPeriapsis,trueAnomaly);シナリオにアクセス解析を追加し、衛星とプラットフォーム間のアクセス間隔の表を取得します。
ac = access(sat,pltf); intvls = accessIntervals(ac)
intvls=7×8 table
Source Target IntervalNumber StartTime EndTime Duration StartOrbit EndOrbit
_____________ ____________ ______________ ____________________ ____________________ ________ __________ ________
"Satellite 2" "Platform 1" 1 01-May-2020 14:07:00 01-May-2020 14:54:00 2820 1 2
"Satellite 2" "Platform 1" 2 01-May-2020 17:11:00 01-May-2020 18:01:00 3000 3 3
"Satellite 2" "Platform 1" 3 01-May-2020 20:16:00 01-May-2020 21:06:00 3000 4 4
"Satellite 2" "Platform 1" 4 01-May-2020 23:22:00 02-May-2020 00:11:00 2940 5 5
"Satellite 2" "Platform 1" 5 02-May-2020 02:31:00 02-May-2020 03:15:00 2640 6 6
"Satellite 2" "Platform 1" 6 02-May-2020 05:43:00 02-May-2020 06:22:00 2340 7 7
"Satellite 2" "Platform 1" 7 02-May-2020 08:54:00 02-May-2020 09:33:00 2340 8 8
シナリオを再生して、プラットフォームと衛星を可視化します。
play(sc)

出力引数
アクセスが true されている間隔がテーブルとして返されます。
表の各行は特定の間隔を示します。テーブルの列の名前は、Source、Target、IntervalNumber、StartTime、EndTime、Duration (秒単位)、StartOrbit、EndOrbit です。Source と Target は、それぞれアクセス解析を定義する最初のノードと最後のノードの名前です。
Sourceが衛星、または衛星に直接的あるいは間接的に付属するオブジェクトである場合、StartOrbitとEndOrbitはSourceに関連付けられた衛星に対応します。Targetが衛星、または衛星に直接的あるいは間接的に付属するオブジェクトである場合、StartOrbitとEndOrbitはTargetに関連付けられた衛星に対応します。それ以外の場合、StartOrbitとEndOrbitは地上局に関連付けられているため、NaNになります。
メモ
衛星シナリオの AutoSimulate プロパティが true の場合、StartTime と StopTime 間のアクセス間隔が返されます。プロパティが false の場合、StartTime から SimulationTime までのアクセス間隔が返されます。
バージョン履歴
R2021a で導入
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)