|
From: | Carlo Rossi |
Subject: | Re: extracting rows in a matrix |
Date: | Tue, 12 May 2009 23:07:22 +0000 (GMT) |
hello, it doesn't work: octave:16> extract_row = rand(nrows,1) < 0.2 extract_row = 0 0 0 0 0 octave:17> B = A(extract_row, :) B = [](0x4) Yes, I need about 1/5; 400 rows = 400/5 rows; of course with 299/5 about 60 or 59. Anyway I have to pick the row randomly. Your example it seems don't work good, I suppose... thanks --- Mer 13/5/09, Ivan Sutoris <address@hidden> ha scritto: Da: Ivan Sutoris <address@hidden> |
[Prev in Thread] | Current Thread | [Next in Thread] |