bugGNU Octave - Bugs: bug #42300, statistics package: uninitialised...

 
 

bug #42300: statistics package: uninitialised variable in princomp

Submitter:  Max Görner <maxg>
Submitted:  Mon 05 May 2014 01:46:21 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 05 May 2014 03:20:51 PM UTC, comment #1: 

Duplicate report, fixed in bug #40893.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Mon 05 May 2014 01:46:21 PM UTC, original submission:  

I tried do use princomp.


M = rand(1000,3);
princomp(M)


results in


error: 'r' undefined near line 103 column 51
error: invalid limit value in colon expression
error: evaluating argument list element number 1
error: called from:
error:   ~/octave/statistics-1.2.3/princomp.m at line 103, column 13


Note that I anonymised the path in the last line of the error message.

I looked in the file and found that r is really not initialised for nargout < 2.

Max Görner <maxg>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by maxg (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-05 jordigh StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #40893
    2014-05-05 mtmiller CategoryLibraries Octave Package
        Item GroupNone Incorrect Result
        Summaryuninitialised variable in princomp statistics package: uninitialised variable in princomp

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code