diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-05-15 18:18:59 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-05-15 18:18:59 +0800 |
commit | 81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf (patch) | |
tree | bae7b6f5ded34e5d9e5244b3e51861620c9b64a4 /parGetVecs.m | |
parent | c02789c3194059233b275a2de76c33f5456f0a11 (diff) | |
download | featext-81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf.tar.gz featext-81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf.tar.bz2 featext-81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf.zip |
updated range
Diffstat (limited to 'parGetVecs.m')
-rw-r--r-- | parGetVecs.m | 15 |
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 |