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 10:39:17 +0100

On Tue, Feb 9, 2010 at 10:33 AM, Dupuis <address@hidden> wrote:
>
> Hello,
>
> I've just posted a workaround for a problem I encountered. Short summary: a
> script may either be run under octave in interactive mode, either as a
> standalone app. In the latter case, I wish to keep the window open until the
> user presses a key. I implemented a test, looping on the cell array obtained
> by
> strfind(argv(), 'script_name')
> This test could be shortened if the function 'any', applied to a cell array,
> worked with the same semantic as on a matrix, that is, apply the test
> 'column' wise, and return 1 if any of the element of the column is not empty
> and has a value which is not zero.
>
> Could this be implemented without breaking existing scripts ?
>
> Regards
>
> Pascal

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.

-- 
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]