diff scripts/plot/draw/private/__stem__.m @ 21223:f6aab24ed82e

maint: Periodic merge of stable to default.
author Rik <rik@octave.org>
date Mon, 08 Feb 2016 20:36:40 -0800
parents 516bb87ea72e 732ec49d1ec5
children ffad2baa90f7
line wrap: on
line diff
--- a/scripts/plot/draw/private/__stem__.m	Mon Feb 08 17:10:30 2016 -0800
+++ b/scripts/plot/draw/private/__stem__.m	Mon Feb 08 20:36:40 2016 -0800
@@ -250,6 +250,8 @@
         x = 1:length (y);
       elseif (ismatrix (y))
         x = 1:rows (y);
+      else
+        error ("stem: Y must be a vector or 2-D array");
       endif
     endif
     if (! (isnumeric (x) || islogical (x))