diff --git a/m4/ax_matlab_batch_options.m4 b/m4/ax_matlab_batch_options.m4
index 46c366bc26e79d77dcb6885c7278aa500ee6248c..9949a479c83733545b5eda684a972398d90204c4 100644
--- a/m4/ax_matlab_batch_options.m4
+++ b/m4/ax_matlab_batch_options.m4
@@ -22,7 +22,7 @@ AC_REQUIRE([AX_MATLAB_ARCH])
 AC_REQUIRE([AX_MATLAB_VERSION])
 
 AX_COMPARE_VERSION([$MATLAB_VERSION], [ge], [9.6],
-  [MATLAB_BATCH_OPTIONS='-batch'],
+  [MATLAB_BATCH_OPTIONS='-noFigureWindows -batch'],
   [
     if test "${MATLAB_ARCH}" = win32 -o "${MATLAB_ARCH}" = win64; then
       MATLAB_BATCH_OPTIONS='-nosplash -automation -wait -sd "$(CURDIR)" -r'