# HG changeset patch # User John W. Eaton # Date 1235547864 18000 # Node ID ff89a265592b44eff34725c7832494696e8ab26d # Parent 3149112b94128d79e39648a69ad033ad050b8c8e pie.m: fix arg size comparison diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -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 --git a/scripts/plot/pie.m b/scripts/plot/pie.m --- a/scripts/plot/pie.m +++ b/scripts/plot/pie.m @@ -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))