bugGNU Octave - Bugs: bug #50583, Empty arguments to some simple...

 
 

bug #50583: Empty arguments to some simple functions give inconsistent results to Matlab

Submitted by:  Ceral Paquet <octavebugs>
Submitted on:  Sat 18 Mar 2017 09:25:07 PM UTC  
 
Category: Octave FunctionSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.2.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 28 Jun 2017 06:20:44 PM UTC, comment #2:

note that this is related to bug #48690 which has patches submitted for producing fully matlab compatible output from basic statistics functions std, var, median, mean, mode, and cov.

Nicholas Jankowski <nrjank>
Sun 19 Mar 2017 05:22:16 AM UTC, comment #1:

This is a philosophical difference. Octave has generally preferred to raise an error early to alert the programmer that something is wrong. The alternative, which Matlab often does, is to keep computing but use the value NaN. The NaN value cascades through calculations so at the end of a long script the programmer may find that the value is NaN, but have no idea which step in the process created the problem. I wouldn't change Octave's behavior in this case, rather I would make sure that mode and cov also issue errors. But we'll see if other core programmers have an opinion.

Rik <rik5>
Project Administrator
Sat 18 Mar 2017 09:25:07 PM UTC, original submission:

MATLAB 2016a:

Octave 4.2.1:

Ceral Paquet <octavebugs>

 

(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 nrjank (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by octavebugs (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 19 Mar 2017 05:22:16 AM UTCrik5CategoryNone=>Octave Function
      Severity3 - Normal=>2 - Minor

    Back to the top


    Powered by Savane 3.1-cleanup1