bugGNU Octave - Bugs: bug #67404, built-in function...

 
 

bug #67404: built-in function numArgumentsFromSubscript not implemented in Octave

Submitter:  Fernando <tutissanalio>
Submitted:  Thu 07 Aug 2025 11:07:57 AM UTC
   
 
Category:  Interpreter Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 07 Aug 2025 11:07:57 AM UTC, original submission:  

From Matlab documentation (https://www.mathw ... romsubscript.html), you can use the built-in function numArgumentsFromSubscript to find the number of outputs of a subsref expression, e.g.:

>> C = {"one",2,'three'};
>> S = substruct('{}',{1:2});
>> numArgumentsFromSubscript(C,S,matlab.indexing.IndexingContext.Statement)
ans =
     2

In Octave, there is no built-in function numArgumentsFromSubscript (although you can define it for a particular class):

octave:1> C = {"one",2,'three'};
octave:2> S = substruct('{}',{1:2});
octave:3> numArgumentsFromSubscript(C,S)
error: 'numArgumentsFromSubscript' undefined near line 1, column 1

The ‘numArgumentsFromSubscript’ function is not yet implemented in
Octave.

Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.


Fernando <tutissanalio>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by tutissanalio (Submitted the item)
  •  

    Votes

    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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-08-07 jwe Item GroupMatlab Compatibility Feature Request
    2025-08-07 jwe Priority5 - Normal 3 - Low
    2025-08-07 jwe Severity3 - Normal 1 - Wish

    Back to the top

    Powered by Savane 3.16-a7ba.
    Corresponding source code