この Earth_example ファイルを使用して、MATLAB で 3D グローブの周りにフライト データをプロットしています。
http://www.mathworks.com/matlabcentral/fileexchange/13823-3d-earth-example
飛行経路を調べるために、回転ポイントを飛行経路上のどこかに移動できるようにしたいのですが、それを可能にするコマンドが見つかりません。camtarget と campos を試しましたが、どちらもプロット内の新しいポイントを中心に回転できず、campos は警告をスローし、3D Earth プロットで失敗します。シーンの中心を更新して、新しいポイントを中心に簡単に回転できる機能はありますか?
これが私のコードのスニペットです:
%% Calculate & Plot Great Circle Trajectories
for flight = flight_struct
% [lat,lon] = gcwaypts(lat1,lon1,lat2,lon2,nlegs) - (nlegs = # of waypts along path)
[lat,lon] = gcwaypts(flight.DepartureLatitude,flight.DepartureLongitude,flight.ArrivalLatitude,flight.ArrivalLongitude,50);
% 3D Trajectories
alt = ones(length(lat),1)*cruise_alt;
lla_pos = [lat,lon,alt];
ecef_pos = lla2ecef(lla_pos);
x = ecef_pos(:,1);
y = ecef_pos(:,2);
z = ecef_pos(:,3);
plot3(x,y,z,'r','LineWidth',1)
ヘルプ/ガイダンスをありがとう。