selectmap.m

来自「计量工具箱」· M 代码 · 共 21 行

M
21
字号
function [out,vectx,vecty]=selectmap(lat,long,obs,x,y,method)
% PURPOSE: This function selects points on a map
%------------------------------------------------------------------------
% USAGE: [out,vectx,vecty]=selectmap(long,lat,obs,x,y,index,method)
%   where : 
%           long = n x 1 vector of coordinates on the second axis
%           lat = n x 1 vector of coordinates on the first axis
%           obs = n x 1 0-1 variable: current selection. Selected spatial units are marked with a 1
%           x = first coordinate of the selected point
%           y = second coordinate of the selected point
%           method = tells how to select points:
%                       *   method = 'point' : single point selection
%                       *   method = 'poly' : selects points inside a polygon
%------------------------------------------------------------------------
% OUTPUTS: out = (n x 1) 0-1 variable: selected spatial units are marked with a 1
%          vectx = vector of the first coordinates of the polygon (vectx=[] if method=1)
%          vecty = vector of the second coordinates of the polygon (vecty=[] if method=1) 
%------------------------------------------------------------------------
% Christine Thomas-Agnan, Anne Ruiz-Gazen, Julien Moutel
% June 2003
% Universit

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?