bugGNU Octave - Bugs: bug #34346, Compatibility: str2num


bug #34346: Compatibility: str2num

Submitted by:  Guillaume <gyom>
Submitted on:  Tue Sep 20 18:25:52 2011  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: Wont FixAssigned to: None
Originator Name: GuillaumeOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Sun Oct 9 21:36:40 2016, comment #2:

I guess the criteria has changed, since now Octave behaves like Matlab.

Juan Pablo Carbajal <juanpi>
Wed Oct 19 21:45:54 2011, comment #1:

As you have pointed out, this is a difference in the interpreter. In general, Octave is more careful about checking its inputs in the desire to prevent Garbage In/Garbage Out calculations. In this case, it seems useful to preserve the error behavior when the user has started a comma-separated list of items without the first item. The missing item is probably due to a typing error and should provoke a warning. In this case Octave won't try to be compatible with Matlab.

Rik <rik5>
Project Administrator
Tue Sep 20 18:25:52 2011, original submission:

There is a difference in behaviour between Octave and MATLAB when calling str2num with a string that starts with a comma:

This is actually due to difference in the interpreter

Guillaume <gyom>


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

Attach File(s):

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 juanpi (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by gyom (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
    Wed Oct 19 21:45:54 2011rik5StatusNone=>Wont Fix

    Back to the top

    Powered by Savane 3.1-cleanup1