[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62029] Size function does not accept vector D
From: |
Chris |
Subject: |
[Octave-bug-tracker] [bug #62029] Size function does not accept vector DIM input |
Date: |
Thu, 10 Feb 2022 20:04:18 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?62029>
Summary: Size function does not accept vector DIM input
Project: GNU Octave
Submitted by: chris0112
Submitted on: Fri 11 Feb 2022 01:04:16 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 6.4.0
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
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])
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62029>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62029] Size function does not accept vector DIM input,
Chris <=