buggnats - Bugs: bug #36601, Bug in Octave 3.2.4


bug #36601: Bug in Octave 3.2.4

Submitted by:  gerard <gdroege>
Submitted on:  Wed Jun 6 15:50:05 2012  
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Fri Mar 13 22:08:52 2015, comment #2:

Looks like a misfiled bug report intended for a project other than GNATS.

Alex Manoussakis <amanou>
Project Administrator
Wed Jun 20 11:26:10 2012, comment #1:

It looks like the problem is on line 198

It currently looks like this

for i = 1:rows (X)
h = render_size_color (hg, vert(idx{i},:), s, cc(i,:),
marker, filled, true);

it should look like this

for i = 1:rows (cc)
h = render_size_color (hg, vert(idx{i},:), s, cc(i,:),
marker, filled, true);

Jamie Cook <jamiecook>
Wed Jun 6 15:50:05 2012, original submission:

I am in the ML course at Stanford and it seems that most folks are all having problems with a bug calculating K-means. It looks like the problem is that

the underlying problem is apparently that octave doesn't support scatter-plotting more than 100 points with colors at a time. you can read the argument about whether or not it's worth fixing,

The error obtained looks like

>> [centroids, idx] = runkMeans(X, initial_centroids, max_iters, true);

K-Means iteration 1/10...
error: _scatter_: A(I): index out of bounds; value 4 out of bound 3
error: called from:
error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/plot/private/__scatter__.m at line 199, column 13
error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/plot/scatter.m at line 71, column 11
error: /Users/mberman/ml/ex7/plotDataPoints.m at line 12, column 1
error: /Users/mberman/ml/ex7/plotProgresskMeans.m at line 11, column 1
error: /Users/mberman/ml/ex7/runkMeans.m at line 48, column 9

Can anyone point me to a fix for OCtave 3.2.4 (windows) or should I use a different version of Octave



gerard <gdroege>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by amanou (Posted a comment)
  • -unavailable- added by jamiecook (Posted a comment)
  • -unavailable- added by gdroege (Submitted the item)
  • -unavailable- added by gdroege

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Mar 13 22:08:52 2015amanouStatusNone=>Invalid
    Wed Jun 6 15:50:05 2012gdroegeCarbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1