bugGNU Octave - Bugs: bug #47735, Code doesn't work on Octave, but...

 
 

bug #47735: Code doesn't work on Octave, but does on MATLAB

Submitter:  None
Submitted:  Tue 19 Apr 2016 02:23:03 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Doug Sherman Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.1
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 19 Apr 2016 04:16:21 AM UTC, comment #1: 

3.8.1 is a very ancient version of Octave and is no longer supported.  I can run your script just fine in the current stable version of Octave (v4.0.1).  It does prodce a warning about short-circuit operators, but just a warning--not an error.

Upgrade to be able to run your script.

Rik <rik5>
Group administrator
Tue 19 Apr 2016 02:23:03 AM UTC, original submission:  

I have attached two functions. test_lwpr_nD.m is a helper function that runs a test of lwpr.m. I just tested on Matlab, and it works fine, but on octave I get an error relating to subscripts. I believe that this may have something to do with all the Matlab short-circuits throughout the code.

these are the errors

error: lwpr: subscript indices must be either positive integers less than 2^31 or logicals
error: called from:
error:   /home/dsherman/Desktop/CLMC/LWPR/lwpr.m at line 293, column 7
error:   /home/dsherman/Desktop/CLMC/LWPR/test_lwpr_nD.m at line 71, column 16

note: I get a lot of these warnings on octave as well

warning: /home/dsherman/Desktop/CLMC/LWPR/lwpr.m: possible Matlab-style short-circuit operator at line 777, column 53


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36959:  lwpr.m added by None (24KiB - text/x-objcsrc - simply run test_lwpr_nD without any parameters.)
file #36960:  test_lwpr_nD.m added by None (5KiB - text/x-objcsrc - simply run test_lwpr_nD without any parameters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-19 rik5 CategoryPerformance Interpreter
        StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2016-04-19 None Attached File- Added lwpr.m, #36959
        Attached File- Added test_lwpr_nD.m, #36960

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code