[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug? in create_set
From: |
Paul Kienzle |
Subject: |
Re: bug? in create_set |
Date: |
Mon, 31 Jul 2000 19:09:51 +0100 (BST) |
In unique(), I use:
if (nelx > 1)
y (find (y(1:nelx-1) == y(2:nelx))) = [];
endif
Paul Kienzle
address@hidden
From: "Ross A. Lippert" <address@hidden>
>> create_set([1 1])
>issues an "empty matrix found" warning. This is in 2.1.31, but
>not in 2.0.14 which used a different implementation of create_set.
>
>The source of the problem is the line
>
>y = y( [1, find (y(1:nelx-1) != y(2:nelx)) +1]);
>
>I'm wondering if that could be replaced with
>
>y = y ( find( y != [NaN y(2:nelx)] ) );
>
>or would that be too much of a hack?
>
>
>-r
>
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: bug? in create_set,
Paul Kienzle <=