[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is this a bug?
From: |
Mario Storti |
Subject: |
Re: is this a bug? |
Date: |
Wed, 02 Jul 1997 08:32:44 -0300 |
Vu Nguyen-Cong <address@hidden> writes:
> The following is what I did with octave-2.0.8 on Linux
>
> z = [
> 1 0 0
> 1 0 0
> 0 1 0
> 0 1 0
> 0 0 1
> 0 0 1
> ];
>
> z(:, any(z))
>
> ans =
>
> 1 1 1
> 1 1 1
> 0 0 0
> 0 0 0
> 0 0 0
> 0 0 0
>
> Vu Nguyen-Cong
> address@hidden
I think it's OK. any(z) is [1 1 1] and Octave understands z(:,[1 1 1])
as [z(:,1) z(:,1) z(:,1)].
Hope this helps,
Mario
%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%%<>%%%%%
Mario Alberto Storti | Fax: (54)(42) 55.09.44 |
Grupo de Tecnologia Mecanica | Tel: (54)(42) 55.91.75 |
INTEC, Guemes 3450 - 3000 Santa Fe | Home: Gob. Vera 3161 |
Argentina | (54)(42) 55.00.23|
Reply: address@hidden | |
http://venus.unl.edu.ar/gtm-eng.html |
- is this a bug?, Vu Nguyen-Cong, 1997/07/02
- Re: is this a bug?,
Mario Storti <=