Mercurial > hg > octave-avbm
changeset 10547:af55e4a499e4
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
author | Rik <code@nomad.inbox5.com> |
---|---|
date | Fri, 23 Apr 2010 11:04:53 -0700 |
parents | f5b8b28917a2 |
children | 479536c5bb10 |
files | scripts/ChangeLog scripts/sparse/gplot.m |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-04-23 Rik <octave@nomad.inbox5.com> + + * optimization/gplot.m: Eliminate parsing error for NaN inside of matrix + declaration. + 2010-04-22 Rik <octave@nomad.inbox5.com> * optimization/sqp.m: Return correct value (101) on succes. Fixes bug #29577
--- a/scripts/sparse/gplot.m +++ b/scripts/sparse/gplot.m @@ -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);