octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62291] "zeros" with vector input is incompati


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #62291] "zeros" with vector input is incompatible with Matlab
Date: Tue, 12 Apr 2022 12:37:15 -0400 (EDT)

Update of bug #62291 (project octave):

                  Status:               Confirmed => Patch Submitted        
        Operating System:       Microsoft Windows => Any                    

    _______________________________________________________

Follow-up Comment #3:

I'm attaching a patch that should check that the dimensions in the input to
ones/zeros/Inf/NaN/eps/... are scalars (instead of silently taking the first
element and ignoring the rest).

Exemplary output:

>> zeros(1, 1:3)
error: zeros: dimensions must be scalars.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62291>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]