changeset 11896:424f1b00833f
release-3-0-x
Make contourf work for equal-size matrices (again).
author |
kai@LxLap.site |
date |
Sat, 13 Dec 2008 17:30:18 +0100 |
parents |
a85bde34b8b9 |
children |
ee24b6c413f6 |
files |
scripts/ChangeLog scripts/plot/contourf.m |
diffstat |
2 files changed, 6 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,8 @@
+2008-09-08 Kai Habel <kai.habel@gmx.de>
+
+ * plot/contourf.m: Fix case for equal-sized matrices
+ of X and Y.
+
2008-11-26 Francesco Potort́ <pot@gnu.org>
* specfun/nchoosek.m: Set max_recursion_depth and use a subfunction.
--- a/scripts/plot/contourf.m
+++ b/scripts/plot/contourf.m
@@ -227,7 +227,7 @@
arg(1:4) = [];
endif
- if (!isvector (X) || !isvector (Y) && any (size (X) != size (Y)))
+ if (! ((isvector (X) && isvector (Y)) || size_equal (X, Y)))
error ("patch: X and Y must be of same size")
endif