diff options
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 |