help-octave
[Top][All Lists]
Advanced

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

Re: Deleting multiple Values in an 2D-Array


From: Stefan Mahr
Subject: Re: Deleting multiple Values in an 2D-Array
Date: Sun, 30 Dec 2012 20:39:37 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0


Nikolai Huckle wrote:
> I have two 200000x1 Arrays which I plot against each other. I have
> attached an example image.
> The issue I have is, that I only want the outline of the point cloud:
> the farthest points to the right, the left and upwards.

check out
http://www.gnu.org/software/octave/doc/interpreter/Convex-Hull.html#Convex-Hull


AJ = randn(1,1000);
EJ = randn(1,1000);
k=convhull(AJ,EJ);
plot(AJ,EJ,'*',AJ(k),EJ(k))


I got errors if using
  AJ = randi(50,1,N);
  EJ = randi(50,1,N);
if N is greater 200 and sometimes even if N is 100. Don't know why.

Stefan


reply via email to

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