changeset 30332:6c53b9bf6b19

plotmatrix.m: Use '~' rather than dummy variable to discard function output. * plotmatrix.m: Replace '[dummy, m] = size (...)' with '[~, m] = size (...)'.
author Rik <rik@octave.org>
date Tue, 23 Nov 2021 14:02:24 -0800
parents ccc991d563ce
children 7ddb137383f6 19da6de8676c
files scripts/plot/draw/plotmatrix.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/plotmatrix.m	Tue Nov 23 22:13:13 2021 +0100
+++ b/scripts/plot/draw/plotmatrix.m	Tue Nov 23 14:02:24 2021 -0800
@@ -173,8 +173,8 @@
     error ("plotmatrix: dimension mismatch in the arguments");
   endif
 
-  [dummy, m] = size (X);
-  [dummy, n] = size (Y);
+  m = columns (X);
+  n = columns (Y);
 
   h = [];
   ax = [];