From f618466c25d43f3bae9e40920273bf77de1e1149 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Mon, 19 Oct 2020 23:09:30 -0400 Subject: initial sd-vbs initial sd-vbs add sd-vbs sd-vbs --- SD-VBS/common/toolbox/toolbox_basic/pyramid/gen_w.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 SD-VBS/common/toolbox/toolbox_basic/pyramid/gen_w.m (limited to 'SD-VBS/common/toolbox/toolbox_basic/pyramid/gen_w.m') diff --git a/SD-VBS/common/toolbox/toolbox_basic/pyramid/gen_w.m b/SD-VBS/common/toolbox/toolbox_basic/pyramid/gen_w.m new file mode 100755 index 0000000..b255751 --- /dev/null +++ b/SD-VBS/common/toolbox/toolbox_basic/pyramid/gen_w.m @@ -0,0 +1,12 @@ +function w = gen_w(a) +% + +if (nargin == 0), + a = 0.4; +end + +w(3) = a; +w(1) = 1/4 - a/2; +w(5) = 1/4 - a/2; +w(2) = 1/4; +w(4) = 1/4; -- cgit v1.2.2