|Subject:||Re: find subvector with findstr / strfind|
|Date:||Wed, 17 Feb 2016 09:33:57 -0500|
I used to locate a sequence of numbers in a longer vector via findstr(),
findstr( [3 4 5 3 4] , [3 4] )
ans = 1 4.
Today I came across the information that findstr() is scheduled for
deprecation and one should use strfind() instead.
strfind( [3 4 5 3 4] , [3 4] )
error: strfind: PATTERN must be a string or cell array of strings.
Will non-strings be supported in a future version of strfind() or should I
use another approach for finding subvectors?
My octave version is 4.0.0 on Win7.
PS: In Matlab 2012 strfind() as well as findstr() can be used with
|[Prev in Thread]||Current Thread||[Next in Thread]|