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

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

[Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab


From: Guillaume
Subject: [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2
Date: Wed, 26 Aug 2015 10:52:28 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0

Follow-up Comment #11, bug #45820 (project octave):

There has indeed been a change in MATLAB's behavior.

R2010b returns:


>> linspace(1,10,0)

ans =

    10


while R2011a returns:


>> linspace(1,10,0)

ans =

   Empty matrix: 1-by-0


The help text is the same in both releases:


For N < 2, LINSPACE returns X2.


but with recent versions of MATLAB, it now states:


For N = 1, LINSPACE returns X2.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45820>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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