octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #40898] scatter3 needs better input validation


From: Rik
Subject: [Octave-bug-tracker] [bug #40898] scatter3 needs better input validation
Date: Tue, 17 Dec 2013 19:07:03 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0

Follow-up Comment #7, bug #40898 (project octave):

You want to invoke scatter3 with an Nx3 color matrix.  However the code


c(:)


turns the matrix into a column vector.  The correct way to call the function
is


scatter3 (x(:), y(:), z(:), s(:), c, "s");


In fact, x,y,z,s are already column vectors so there's no point in using '(:)'
to change them to column vectors again.  You could just write


scatter3 (x, y, z, s, c, "s");


which looks cleaner.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40898>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]