[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Matlab test for magic requested
From: |
Andreas Weber |
Subject: |
Re: Matlab test for magic requested |
Date: |
Tue, 15 Dec 2015 19:32:42 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 |
Am 14.12.2015 um 01:18 schrieb Richard Balogh:
> On 12.12.2015 22:12, Andreas Weber wrote:
>> Hi Richard, thank you very much.
>>
>> Am 12.12.2015 um 19:50 schrieb Richard Balogh:
>>> magic (1.5)
>>>
>>> ans =
>>>
>>> 1
>>
>> Oh, this wasn't expected. Can you try other non integer values? For
>> example magic(2.1), magic(2.8), can you see a system?
>
>
> magic(2.1)
>
> ans =
>
> 1 3
> 4 2
>
>>> magic(2.8)
>
> ans =
>
> 1 3
> 4 2
>
>
>
> Richard
Thanks for testing,
I already used fix in this cset
http://hg.savannah.gnu.org/hgweb/octave/rev/7234cbd04292 so the output
of Octave should now follow Matlabs.
-- Andy