From 893543a8adc40899ba22bfe49a513efec74f925f Mon Sep 17 00:00:00 2001 From: Travis Askham Date: Tue, 2 Apr 2024 15:43:31 -0400 Subject: [PATCH] fixes bug in split --- chunkie/@chunker/split.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chunkie/@chunker/split.m b/chunkie/@chunker/split.m index daa172a..995d309 100644 --- a/chunkie/@chunker/split.m +++ b/chunkie/@chunker/split.m @@ -137,9 +137,9 @@ chnkr.rstor(:,:,ich) = r_1; chnkr.rstor(:,:,nch+1) = r_2; chnkr.dstor(:,:,ich) = d_1*h1; -chnkr.wtsstor(:,ich) = (sqrt(sum(d_1.^2,1)).') .* chnkr.wstor; +chnkr.wtsstor(:,ich) = (sqrt(sum(d_1.^2,1)).') .* chnkr.wstor*h1; chnkr.dstor(:,:,nch+1) = d_2*h2; -chnkr.wtsstor(:,nch+1) = (sqrt(sum(d_2.^2,1)).') .* chnkr.wstor; +chnkr.wtsstor(:,nch+1) = (sqrt(sum(d_2.^2,1)).') .* chnkr.wstor*h2; chnkr.d2stor(:,:,ich) = d2_1*h1*h1; chnkr.d2stor(:,:,nch+1) = d2_2*h2*h2;