How do I replace this for-loop?

Jordi Gutiérrez Hermoso jordigh at gmail.com
Sat Jul 5 22:00:35 CDT 2008


2008/7/5 Ben Abbott <bpabbott at mac.com>:

> Actually, you weren't so far off. Your attempt gave me the inspiration
> needed to produce the result below.

A winner is you. :-) Your call to find is a little faster than my call
to unique.

I'm thinking, wouldn't it be faster to simply compile in the original
for-loop instead of these acrobatics?

- Jordi G. H.


More information about the Help-octave mailing list