メインコンテンツ

このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。

camtarget

衛星シナリオ ビューアーのカメラターゲットを設定する

R2021a 以降

説明

camtarget(viewer,target) は入力衛星または地上局にカメラの焦点を合わせます。カメラはtargetを追います。別の衛星または地上局で camtarget を使用するか、マップ内の任意の場所をダブルクリックすることで、カメラのターゲットをリセットできます。

すべて折りたたむ

衛星シナリオ オブジェクトを作成します。

sc = satelliteScenario;

シナリオに衛星を追加します。

semiMajorAxis = 10000000;                             % meters
eccentricity = 0;
inclination = 0;                                      % degrees
rightAscensionOfAscendingNode = 0;                    % degrees
argumentOfPeriapsis = 0;                              % degrees
trueAnomaly = 0;                                      % degrees
sat = satellite(sc,semiMajorAxis,eccentricity, ...
      inclination,rightAscensionOfAscendingNode, ...
      argumentOfPeriapsis,trueAnomaly);

衛星シナリオ ビューアーを起動します。

v = satelliteScenarioViewer(sc);

ビューアーでシナリオを再生します。

play(sc,"Viewer",v);

カメラのターゲットを衛星に設定します。

camtarget(v,sat);

入力引数

すべて折りたたむ

衛星シナリオ ビューアー(スカラー satelliteScenarioViewer オブジェクトとして指定)。 1

カメラ ターゲット。スカラー Satellite または GroundStation オブジェクトとして指定されます。

バージョン履歴

R2021a で導入


1 Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.