bugGNU Octave - Bugs: bug #46328, validateattributes: missing...


bug #46328: validateattributes: missing "diag" attribute

Submitter:  Amro <amro_octave>
Submitted:  Thu 29 Oct 2015 10:48:44 PM UTC
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Fri 30 Oct 2015 12:24:00 PM UTC, comment #1: 
Carnë Draug <carandraug>
Project Member
Thu 29 Oct 2015 10:48:44 PM UTC, original submission:  


>> validateattributes(eye(5), {'numeric'}, {'size',[5 5], 'diag'})
error: validateattributes: unknown ATTRIBUTE diag
error: called from
    validateattributes at line 321 column 9

It should be easy to fix, using ISDAIG function to perform the test.

Also there's a typo in the documentation, where it mentions "non-negative" attribute but its name should be "nonnegative" to match MATLAB.

% this will error
% validateattributes(1:3, {'numeric'}, {'non-negative'})

% this works
validateattributes(1:3, {'numeric'}, {'nonnegative'})

Amro <amro_octave>


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

Attach Files:

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 amro_octave (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 project members can vote.





    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-10-30 carandraug StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.9