doc/pspp-figures/descriptives.sps \
doc/pspp-figures/flip.sps \
doc/pspp-figures/frequencies.sps \
+ doc/pspp-figures/matrix-print.sps \
doc/pspp-figures/means.sps \
doc/pspp-figures/one-sample-t.sps \
doc/pspp-figures/independent-samples-t.sps \
command acts as if @code{MDISPLAY} is set to @code{TEXT} regardless of
its actual setting.
+The following syntax demonstrates two different ways to label the rows
+and columns of a matrix with @code{PRINT}:
+@example
+MATRIX.
+COMPUTE m=@{1, 2, 3; 4, 5, 6; 7, 8, 9@}.
+PRINT m/RLABELS=a, b, c/CLABELS=x, y, z.
+
+COMPUTE rlabels=@{"a", "b", "c"@}.
+COMPUTE clabels=@{"x", "y", "z"@}.
+PRINT m/RNAMES=rlabels/CNAMES=clabels.
+END MATRIX.
+@end example
+
+@noindent
+With @code{MDISPLAY=TEXT} (the default), this program outputs the
+following (twice):
+
+@example
+m
+ x y z
+a 1 2 3
+b 4 5 6
+c 7 8 9
+@end example
+
+@noindent
+With @samp{SET MDISPLAY=TABLES.} added above @samp{MATRIX.}, the
+output becomes the following (twice):
+
+@psppoutput {matrix-print}
@node Matrix DO IF Command
@subsection The @code{DO IF} Command
--- /dev/null
+SET MDISPLAY=TABLES.
+MATRIX.
+COMPUTE m={1, 2, 3; 4, 5, 6; 7, 8, 9}.
+COMPUTE rlabels={"a", "b", "c"}.
+COMPUTE clabels={"x", "y", "z"}.
+PRINT m/RNAMES=rlabels/CNAMES=clabels.
+END MATRIX.