# HG changeset patch # User Rik # Date 1272045893 25200 # Node ID af55e4a499e442f458f27e58d04c6649661ba3b5 # Parent f5b8b28917a2a6045df6f43115c9a5d75cee41d4 Fix parsing error when NaN used inside of matrix declaration Inside of matrix declaration, NaN function and parenthesis must cuddle. x = [1, NaN (1, 2)] fails x = [1, NaN(1,2)] works diff -r f5b8b28917a2 -r af55e4a499e4 scripts/ChangeLog --- a/scripts/ChangeLog Fri Apr 23 09:58:23 2010 -0700 +++ b/scripts/ChangeLog Fri Apr 23 11:04:53 2010 -0700 @@ -1,3 +1,8 @@ +2010-04-23 Rik + + * optimization/gplot.m: Eliminate parsing error for NaN inside of matrix + declaration. + 2010-04-22 Rik * optimization/sqp.m: Return correct value (101) on succes. Fixes bug #29577 diff -r f5b8b28917a2 -r af55e4a499e4 scripts/sparse/gplot.m --- a/scripts/sparse/gplot.m Fri Apr 23 09:58:23 2010 -0700 +++ b/scripts/sparse/gplot.m Fri Apr 23 11:04:53 2010 -0700 @@ -43,8 +43,8 @@ endif [i, j] = find (a); - xcoord = [xy(i,1), xy(j,1), NaN (length(i),1) ]'(:); - ycoord = [xy(i,2), xy(j,2), NaN (length(i),1) ]'(:); + xcoord = [xy(i,1), xy(j,1), NaN(length(i),1) ]'(:); + ycoord = [xy(i,2), xy(j,2), NaN(length(i),1) ]'(:); if (nargout == 0) plot (xcoord, ycoord, line_style);