[scilab-Users] help needed for a grep in a multidimensional struct array
Mathieu Dubois
mathieu.dubois at limsi.fr
Thu Feb 11 14:28:46 CET 2010
Hello Gianluca,
Did you try a simple:
find(slot.cdl=="abc")
It should not be difficult to turn this in a function...
Mathieu
Gianluca Antonelli wrote:
> Hi,
>
> I have the following problem.
>
> I have the following variable:
>
> slot =
>
> 30x5x10 struct array with fields:
> modulo
> cdl
>
> I need to find all the indexes for which the field cdl matches a
> specific grep command.
>
> I would like to know if is it possible to have a function such as:
>
> out = grep(slot.cdl, "abc")
>
> Any hint?
>
> Thanks in advance,
> g.
More information about the users
mailing list