octave-maintainers
[Top][All Lists]
Advanced

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

Re: any() on cells ?


From: Jaroslav Hajek
Subject: Re: any() on cells ?
Date: Tue, 9 Feb 2010 11:09:15 +0100

On Tue, Feb 9, 2010 at 11:04 AM, Dupuis <address@hidden> wrote:
>
>
>
> Jaroslav Hajek-2 wrote:
>>
>> On Tue, Feb 9, 2010 at 10:33 AM, Dupuis <address@hidden>
>> wrote:
>>
>> Please do not cross-reference to other threads. Try restating your
>> problem cleanly and from the scratch.
>> I think what you need is easily doable through cellfun, but your
>> description is a bit chaotic to be really sure.
>>
>>
> OK. The problem is as follows: given a cell array, could 'any' work directly
> on the array in the same way it works on matrix ? That is, short-circuit
> cellfun('any', cell_array)
> to
> any(cell_array) ?
>

In theory, yes, but I don't see the reason, given that the first
expression is already very simple.
Besides, I thought you wanted something else than just apply any to
all elements.

-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

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