Hi, all.
I'm using strfind function, that returns a position of a character in a
string. But it returns once only. I need a function that return 0 and 1
wherever the character appears at string, like
decl a = new_function("AHHJTAHUIA", 'A');
println(a);
should appear
1000010001
Someone could helpe me?
Thanks,
C.
PS: I have a code using for, but I prefer vectorizing.
========================================
Cezar Freitas (ICQ 109128967)
IMECC - UNICAMP
Campinas, SP - Brasil
|