bugGNU Octave - Bugs: bug #33524, int2str Matlab compatibility issue

 
 

bug #33524: int2str Matlab compatibility issue

Submitter:  Arnaud Delorme <arnodelorme>
Submitted:  Sat 11 Jun 2011 03:25:24 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 14 Jul 2011 12:33:22 AM UTC, comment #3: 

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/c99714aeb008).  Octave now returns "" for any empty input.

Rik <rik5>
Group administrator
Mon 13 Jun 2011 03:23:59 AM UTC, comment #2: 

Matlab says:

>> version


ans =

7.9.0.529 (R2009b)

>> int2str([])


ans =

     ''


>>


Michael Godfrey <godfrey>
Group Member
Mon 13 Jun 2011 03:20:30 AM UTC, comment #1: 

What does Matlab return for int2str([])?  Is it the null string ""?  And is returning a null string preferable or should Octave issue a warning message about invalid input?  Returning an error seems like a better way of informing the user that they are probably doing something incorrect and unexpected rather than silently returning something valid such as the empty string.

Rik <rik5>
Group administrator
Sat 11 Jun 2011 03:25:24 PM UTC, original submission:  

int2str([]) crashes under Octave

Arnaud Delorme <arnodelorme>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-07-14 rik5 StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2011-06-30 rik5 Item GroupIncorrect Result Matlab Compatibility
    2011-06-13 rik5 StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code