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


bug #34346: Compatibility: str2num

Submitted by:  Guillaume <gyom>
Submitted on:  Tue 20 Sep 2011 06:25:52 PM UTC  
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 Markup)

You are not logged in

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


Sun 09 Oct 2016 09:36:40 PM UTC, comment #2:

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

Juan Pablo Carbajal <juanpi>
Project Member
Wed 19 Oct 2011 09:45:54 PM UTC, 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 20 Sep 2011 06:25:52 PM UTC, 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 19 Oct 2011 09:45:54 PM UTCrik5StatusNone=>Wont Fix

    Back to the top

    Powered by Savane 3.1-cleanup1