bugGNU Octave - Bugs: bug #62029, Size function does not accept...

 
 

bug #62029: Size function does not accept vector DIM input

Submitter:  Chris <chris0112>
Submitted:  Fri 11 Feb 2022 01:04:16 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.4.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 11 Feb 2022 01:19:09 AM UTC, comment #2: 

A note to the original poster, a fix for size was pushed on that other report, and i think that function should be part of the upcoming 7.1 release. You can try the 7.0.90 release candidate from https://alpha.gnu.org/gnu/octave to verify

Nicholas Jankowski <nrjank>
Group Member
Fri 11 Feb 2022 01:13:35 AM UTC, comment #1: 

This is a duplicate of bug #61098.


John W. Eaton <jwe>
Group administrator
Fri 11 Feb 2022 01:04:16 AM UTC, original submission:  

I’m not sure if this would be considered a bug by the community. The size function seems to work as described at https://octave.sourceforge.io/octave/function/size.html, but it does not accept vector input for DIM as the matlab size function does since R2019b. The following two lines give the correct output of [2,4] in MATLAB, but Octave gives “error: size: DIM must be a positive integer”:
A = rand(2,3,4,5);
szdim13 = size(A,[1 3])

Chris <chris0112>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

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 jwe (Posted a comment)
  • -email is unavailable- added by chris0112 (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-11 jwe Item GroupMatlab Compatibility Feature Request
        StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code