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/matlab/nextFig.m | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 SD-VBS/benchmarks/texture_synthesis/src/matlab/nextFig.m (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/nextFig.m') diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/nextFig.m b/SD-VBS/benchmarks/texture_synthesis/src/matlab/nextFig.m new file mode 100755 index 0000000..e0ac73f --- /dev/null +++ b/SD-VBS/benchmarks/texture_synthesis/src/matlab/nextFig.m @@ -0,0 +1,19 @@ +% nextFig (MAXFIGS, SKIP) +% +% Make figure number mod((GCF+SKIP), MAXFIGS) the current figure. +% MAXFIGS is optional, and defaults to 2. +% SKIP is optional, and defaults to 1. + +% Eero Simoncelli, 2/97. + +function nextFig(maxfigs, skip) + +if (exist('maxfigs') ~= 1) + maxfigs = 2; +end + +if (exist('skip') ~= 1) + skip = 1; +end + +figure(1+mod(gcf-1+skip,maxfigs)); -- cgit v1.2.2