GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — setsm_postprocessing/pointAreaSubsets.m at master · ihowat/setsm_postprocessing

Expand file tree

/

pointAreaSubsets.m

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
22 lines (17 loc) · 568 Bytes
/

pointAreaSubsets.m

Copy path

File metadata and controls

22 lines (17 loc) · 568 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.