필터 지우기
필터 지우기

How to represent two airport locations in a grid in Matlab and plot the flight path between the two airports ? I am trying to write a code for Aircraft flight path optimisation.

조회 수: 1 (최근 30일)
I am writing a code for aircraft flight optimisation. I need to represent the Delhi Airport (28.556210, 77.099561) and Kolkata airport(22°39'07.8"N 88°26'43.7"E) in a grid and show the flight bath between the 2 points. I need to form a grid of 300-by-200. Each small box in the grid will be 1kmx1km.
How do I show the 2 airports and make a grid in matlab.
I know basics of Matlab but I am not able to think how to do this. Please help me. I am in desperate need.

답변 (1개)

KSSV
KSSV 2017년 2월 17일
D = [2 3] ; % be your Delhi coordinates
K = [5 6] ; % be your Kolkata coordinates
m = 300 ; n = 200 ;
x=linspace(D(1),K(1),m) ;
y=linspace(D(2),K(2),n) ;
[X,Y] = meshgrid(x,y) ;
mesh(X,Y)
view(2)

카테고리

Help CenterFile Exchange에서 Guidance, Navigation, and Control (GNC)에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by