octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #34303] strfind does not work with ascii the s


From: Mikael
Subject: [Octave-bug-tracker] [bug #34303] strfind does not work with ascii the same way as matlab do
Date: Fri, 16 Sep 2011 14:20:43 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 ( .NET CLR 3.5.30729)

URL:
  <http://savannah.gnu.org/bugs/?34303>

                 Summary: strfind does not work with ascii the same way as
matlab do
                 Project: GNU Octave
            Submitted by: mandolin
            Submitted on: Fri 16 Sep 2011 02:20:43 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

MatLabs version of strfind is able to compare strings when they are in "ascii
form" (class double) octave only returns an error.

example 

st = [45 23 45 23 46 39 19 10 65 97]
posA = strfind(st,'A')


Matlab answer

posA =
     9

octave 

error: strfind: first argument must be a string or cell array of strings




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34303>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]