Changeset 1059 for trunk/src/filter_tps.m
- Timestamp:
- Nov 29, 2018, 5:44:44 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/filter_tps.m
r1027 r1059 79 79 %% calculate tps coeff in each subdomain 80 80 for isub=1:NbSubDomain 81 isub 81 82 SubRange(1,:,isub)=[CentreX(isub)-0.55*Siz(1) CentreX(isub)+0.55*Siz(1)];%bounds of subdomain #isub in x coordinate 82 83 SubRange(2,:,isub)=[CentreY(isub)-0.55*Siz(2) CentreY(isub)+0.55*Siz(2)];%bounds of subdomain #isub in y coordinate … … 87 88 ind_sel_previous=ind_sel;% record the set of selected vector indices for next iteration 88 89 ind_sel=find(Coord(:,1)>=SubRange(1,1,isub) & Coord(:,1)<=SubRange(1,2,isub) & Coord(:,2)>=SubRange(2,1,isub) & Coord(:,2)<=SubRange(2,2,isub)); 90 numel(ind_sel) 89 91 % if no vector in the subdomain #isub, skip the subdomain 90 92 if isempty(ind_sel)
Note: See TracChangeset
for help on using the changeset viewer.