[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strfind() and numeric arrays
From: |
Philip Nienhuis |
Subject: |
Re: strfind() and numeric arrays |
Date: |
Mon, 28 May 2012 09:45:12 -0700 (PDT) |
bpabbott wrote
>
> 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
>
FWIW, earlier on there were some bug reports about similar issues: mixing
strings and numeric input in some basic function. #33537 (lower) was one of
them; it's still open.
Philip
--
View this message in context:
http://octave.1599824.n4.nabble.com/strfind-and-numeric-arrays-tp4630195p4630218.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.