Suggest a data structure to represent a set of geographical points
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a geographical data (latitude $ longitude ) of the areas of my interest . I need a data structure to represent these points. The ultimate aim is to determine if a given point lies within the specified region. ThankYou.
댓글 수: 0
답변 (1개)
Carlos
2013년 2월 12일
Try using multidimensional arrays. The idea is that the "third dimension" represents the index of your bidimensional latitude-longitude vector.
For example
>> A = [100;90];
>> A(:,:,2)=[100;120];
>> A
A(:,:,1) =
100
90
A(:,:,2) =
100
120
As you can see you have two bidimensional vectors representing latitude and longitude, within a 3 dimensional vector.
You can find more information on multidimensional vectors here:http://www.mathworks.es/products/matlab/examples.html?file=/products/demos/shipping/matlab/nddemo.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Map Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!