From 81d9c2360fd88422fcf7c8bd176f0ae07af2a9bf Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Fri, 15 May 2015 18:18:59 +0800 Subject: updated range --- parGetVecs.m | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'parGetVecs.m') 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 -- cgit v1.2.3-70-g09d2