GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — setsm_postprocessing/pointAreaSubsets.m at master · ihowat/setsm_postprocessing Expand file tree/ Copy pathpointAreaSubsets.mMore file actions 22 lines (17 loc) · 568 Bytes / Copy pathpointAreaSubsets.mFile metadata and controls22 lines (17 loc) · 568 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 function [xsub,ysub,zsub]=pointAreaSubsets(xp,yp,x,y,m,dd,N) % initialize coordinate subset cells xsub=cell(length(xp),1); ysub=cell(length(xp),1); zsub=cell(length(xp),1); % subsetting loop j=1; for j=1:length(xp) minCol=find(x >= xp(j) - dd,1,'first'); maxCol=find(x <= xp(j) + dd,1,'last'); minRow=find(y <= yp(j) + dd,1,'first'); maxRow=find(y >= yp(j) - dd,1,'last'); xsub{j}=x(minCol:maxCol); ysub{j}=y(minRow:maxRow); zsub{j}=m.z(minRow:maxRow,minCol:maxCol); zsub{j}(~N(minRow:maxRow,minCol:maxCol)) = NaN; end |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |