【不断更新】
1.去重函数 unique
[C,ia,ic] = unique(A,'rows','stable') also returns index vectors ia and ic, such that C = A(ia,:) and A = C(ic,:)
'stable'输出结果不排序,'sorted'输出结果排序
'rows' treats each row of A as a single entity and returns the unique rows of A.
2.判断点是否在多边形区域内 inpolygon
[in,on]= inpolygon(xq,yq,xv,yv) also returns on indicating if the query points are on the edge of the polygon area.
可一次判断多个点是否落在区域内(in)或者边上(on)
3.多边形绘图 patch
patch('XData',sh_pos(:,1),'YData',sh_pos(:,2),'FaceColor',[1,1,1])
4.颜色映射函数 hsv
hsv(n) 返回n*3的RGB颜色映射矩阵
http://www.cnblogs.com/youth0826/archive/2012/08/11/2633688.html