[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strfind() and numeric arrays
From: |
Ben Abbott |
Subject: |
Re: strfind() and numeric arrays |
Date: |
Mon, 28 May 2012 09:54:46 -0400 |
On May 27, 2012, at 7:54 PM, Júlio Hoffimann wrote:
> Dear all,
>
> I think this is one of those "features" Octave don't need to copy from MATLAB?
>
> strfind([1 2 3],[1 2]) works.
>
> Being more explicit, in MATLAB *str*find() works with numeric data types. I
> see the implementation in Octave DLD-FUNCTIONS/strfind.cc, it's very clear
> about non-string arguments.
>
> Regards,
> Júlio.
The Matlab behavior could be very useful. For example,
strfind([1 2 pi],[2 pi])
ans = 2
Thus, I think his qualifies as a bug.
Please file a bug report.
https://savannah.gnu.org/bugs/index.php
Ben