bugGNU Octave - Bugs: bug #33540, strmatch Matlab compatibility issue

 
 

bug #33540: strmatch Matlab compatibility issue

Submitted by:  Arnaud Delorme <arnodelorme>
Submitted on:  Sat 11 Jun 2011 03:47:11 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.4.0Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 17 Jul 2011 01:55:59 AM UTC, comment #2:

This issue seems to be compatibility with an undocumented feature of Matlab. In addition, the function in question is deprecated and set to be removed from Matlab. Finally, the suggested replacement, strcmp, does accept cell arrays as the first argument. For all of the above reasons, I think we won't choose to address this.

Rik <rik5>
Project Administrator
Sat 11 Jun 2011 10:45:03 PM UTC, comment #1:

As I understand the ML docs, the first argument to strmatch() should be a text string, not a (1x1) cell array.

IMO the fact that it works under ML seems an undocumented feature of ML rather than an incompatibility with Octave.

BTW I saw that strmatch() is to be dropped from future ML versions.

Philip Nienhuis <philipnienhuis>
Project Member
Sat 11 Jun 2011 03:47:11 PM UTC, original submission:

strmatch cannot process cell array under Octave


strmatch({ 'a' }, { 'a' 'b' 'c' }, 'exact') 
% this works under Matlab but crashes under Octave

Arnaud Delorme <arnodelorme>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by philipnienhuis (Posted a comment)
  • -unavailable- added by arnodelorme (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 17 Jul 2011 01:55:59 AM UTCrik5StatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1