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: Mike Miller
Subject: [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2
Date: Tue, 25 Aug 2015 22:21:40 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0

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

Forgot to tack these on the end...



>> class(linspace(1, single(10), 10))
ans =
single
>> class(linspace(1, 10, single(10)))
ans =
double



So only floating point arrays are valid, double or single, and the types of
the first two arguments work according to the normal casting rules, type of
3rd argument doesn't matter.

    _______________________________________________________

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]