bugGNU Octave - Bugs: bug #62543, Octave can not find functions in a...


bug #62543: Octave can not find functions in a script

Submitter:  None
Submitted:  Mon 30 May 2022 03:05:05 AM UTC
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Duplicate Assigned to:  None
Originator Name:  pingplug Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 7.1.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Mon 30 May 2022 09:40:42 AM UTC, comment #3: 

This has been a compatibility issue for a few years since Matlab changed their behavior and is not yet resolved.  See bug #56187. Closing report as a duplicate.

Nicholas Jankowski <nrjank>
Group Member
Mon 30 May 2022 06:10:29 AM UTC, comment #2: 

comment #1:

> The function needs to be defined before it is called.

but Matlab didn't allow this :(

Mon 30 May 2022 03:28:22 AM UTC, comment #1: 

The function needs to be defined before it is called.

Mon 30 May 2022 03:05:05 AM UTC, original submission:  

I have some scripts with sub functions and everything worked fine (in both Octave and Matlab). But these scripts don't work recently.

in attached file, there is an example:

% octave test_subfunc.m
error: 'f1' undefined near line 3, column 1
error: called from
    test_subfunc at line 3 column 1

in old version and Matlab, this works fine:


I didn't find these change in release history, so I think it is bug.



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

Attach Files:

Attached Files
file #53259:  test_subfunc.m added by None (47B - text/x-objcsrc)


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by nrjank (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-30 mmuetzel Dependencies- Depends on bugs #56187
    2022-05-30 nrjank StatusNone Duplicate
        Open/ClosedOpen Closed
    2022-05-30 None Attached File- Added test_subfunc.m, #53259

    Back to the top

    Powered by Savane 3.13-ee12.
    Corresponding source code