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 --- .../benchmarks/texture_synthesis/src/matlabPyrTools/mod.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/mod.m (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/mod.m') diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/mod.m b/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/mod.m new file mode 100755 index 0000000..21167e5 --- /dev/null +++ b/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/mod.m @@ -0,0 +1,14 @@ +% M = mod(A,B) +% +% Modulus operator: returns A mod B. +% Works on matrics, vectors or scalars. +% +% NOTE: This function is a Matlab-5 builtin, but was missing from Matlab-4. + +% Eero Simoncelli, 7/96. + +function m = mod(a,n) + +m = a - n .* floor(a./n); +return; + -- cgit v1.2.2