bugGNU Octave - Bugs: bug #36016, onenormest argument processing...

 
 

bug #36016: onenormest argument processing error

Submitted by:  John W. Eaton <jwe>
Submitted on:  Tue 27 Mar 2012 03:35:01 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.6.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 Mar 2012 06:18:19 AM UTC, comment #1:

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/30597f98f80a).

Rik <rik5>
Project Administrator
Tue 27 Mar 2012 03:35:01 PM UTC, original submission:

[I found the following bug report in an old set of messages that were never correctly posted to the -unavailable- mailing list.
Sorry for not posting it before now. --jwe]

I have discovered a bug in the program onenormest.m. The program everal times uses 'size(varargin,2)' instead of 'nargin'. This usually works, but there are two instances (around lines 102 and 109) where the second argument is omitted; i.e., size(varargin)' is used where 'size(varargin,2)' or 'nargin' is appropriate. Here is some code that shows the error:

This should return the value 1, but returns an error instead.

I offer a correction for the code below, in case that is useful.

Thanks for the work!

Cheers,

Drew Saunders

John W. Eaton <jwe>
Project Administrator

 

(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 jwe (Submitted the item)
  • -unavailable- added by jwe
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 28 Mar 2012 06:18:19 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 27 Mar 2012 03:35:01 PM UTCjweCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1