# HG changeset patch # User John W. Eaton # Date 1235547864 18000 # Node ID ff89a265592b44eff34725c7832494696e8ab26d # Parent 3149112b94128d79e39648a69ad033ad050b8c8e pie.m: fix arg size comparison diff -r 3149112b9412 -r ff89a265592b scripts/ChangeLog --- a/scripts/ChangeLog Wed Feb 25 02:08:28 2009 -0500 +++ b/scripts/ChangeLog Wed Feb 25 02:44:24 2009 -0500 @@ -1,5 +1,8 @@ 2009-02-25 John W. Eaton + * plot/pie.m: Use numel to check sizes of X and LABELS instead of + using size_equal. From Andy Buckle . + * help/lookfor.m: Split original path into cell array and compare elements with strcmp. Suppress warnings and errors when getting help text from function files. diff -r 3149112b9412 -r ff89a265592b scripts/plot/pie.m --- a/scripts/plot/pie.m Wed Feb 25 02:08:28 2009 -0500 +++ b/scripts/plot/pie.m Wed Feb 25 02:44:24 2009 -0500 @@ -85,7 +85,7 @@ if (iscell (arg)) labels = arg; have_labels = true; - if (! size_equal (x, labels)) + if (numel (x) != numel (labels)) error ("pie: mismatch in number of labels and data"); endif elseif (isnumeric (arg))