[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/
- [Octave-bug-tracker] [bug #45820] linspace() incampatibility with Matlab, argumento 'N', José Luis García Pallero, 2015/08/25
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab, argumento 'N', Philip Nienhuis, 2015/08/25
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Rik, 2015/08/25
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, John W. Eaton, 2015/08/25
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Rik, 2015/08/25
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2,
Mike Miller <=
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Mike Miller, 2015/08/25
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Rik, 2015/08/25
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Rik, 2015/08/25
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Philip Nienhuis, 2015/08/26
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Philip Nienhuis, 2015/08/26
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Guillaume, 2015/08/26
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Rik, 2015/08/26
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Guillaume, 2015/08/26
- [Octave-bug-tracker] [bug #45820] linspace() incompatibility with Matlab when N < 2, Rik, 2015/08/29