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:19:19 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0

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


>> linspace(10, 20, 2)
ans = 
    10    20
>> linspace(10, 20, 1)
ans =
    20
>> linspace(10, 20, 0)
ans =
   Empty matrix: 1-by-0
>> linspace(10, 20, -1)
ans =
   Empty matrix: 1-by-0

>> linspace(uint8(1), uint8(10), uint8(10))
Error using .*
Integers can only be combined with integers of the same class, or scalar
doubles.

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




    _______________________________________________________

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]