summaryrefslogtreecommitdiff
path: root/parGetVecs.m
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-05-15 18:18:59 +0800
committerJoe Zhao <ztuowen@gmail.com>2015-05-15 18:18:59 +0800
commit81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf (patch)
treebae7b6f5ded34e5d9e5244b3e51861620c9b64a4 /parGetVecs.m
parentc02789c3194059233b275a2de76c33f5456f0a11 (diff)
downloadfeatext-81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf.tar.gz
featext-81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf.tar.bz2
featext-81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf.zip
updated range
Diffstat (limited to 'parGetVecs.m')
-rw-r--r--parGetVecs.m15
1 files changed, 13 insertions, 2 deletions
diff --git a/parGetVecs.m b/parGetVecs.m
index 53a2cce..f903494 100644
--- a/parGetVecs.m
+++ b/parGetVecs.m
@@ -1,9 +1,20 @@
function parGetVecs(dirname)
+ minc = zeros(2,1008);
+ maxc = zeros(2,1008);
parfor i=1:2
if i==1
- getVecs(strcat(dirname,'_a'));
+ [minc(i,:),maxc(i,:) ] = getVecsM(strcat(dirname,'_a'));
else
- getVecs(strcat(dirname,'_b'));
+ [minc(i,:),maxc(i,:) ] = getVecsM(strcat(dirname,'_b'));
+ end
+ end
+ minc=min(minc)
+ maxc=max(maxc)
+ parfor i=1:2
+ if i==1
+ getVecs(strcat(dirname,'_a'),minc,maxc);
+ else
+ getVecs(strcat(dirname,'_b'),minc,maxc);
end
end
end \ No newline at end of file