octave-maintainers
[Top][All Lists]
Advanced

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

Re: Help with mixed numeric/char operations


From: Lakshman
Subject: Re: Help with mixed numeric/char operations
Date: Mon, 30 Jun 2014 15:29:11 -0500

On Mon, Jun 30, 2014 at 3:24 PM, Серёжа Плотников
<address@hidden> wrote:
> Matlab returns empty matrix as well:
>
>>> 'A' + 1:3
> ans =
>    Empty matrix: 1-by-0
>
> Be happy,
> Sergey
>
>
> 2014-06-30 22:22 GMT+02:00 Rik <address@hidden>:
>
>> All,
>>
>> Could someone test what Matlab does with
>>
>> 'A' + 1:3
>>
>> Octave returns an empty matrix, but it might also be legitimate to return
>> 'BCD' or [66 67 68].
>>
'A' + [1:3] returns [66 67 68] in both matlab and octave.



reply via email to

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