[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ML compatibility question...
From: |
Ben Abbott |
Subject: |
Re: ML compatibility question... |
Date: |
Tue, 29 Nov 2011 22:50:06 -0500 |
On Nov 29, 2011, at 10:39 PM, fork wrote:
> Ben Abbott <bpabbott <at> mac.com> writes:
>
>> The ML result is ...
>>
>> magic(0) + magic(3)
>> Error using +
>> Matrix dimensions must agree.
>>
>> magic(0)
>>
>> ans =
>>
>> []
>>
>
> I am continually amazed ... Thanks for checking, even though it reinforces my
> cynicism...
>
> Tx
> F
BTW, I just noticed a ML bug.
magic (2)
ans =
1 3
4 2
There is no solution for "2".
http://en.wikipedia.org/wiki/Magic_square
Octave gives the appropriate error.
magic (2)
error: magic: N must be a positive integer not equal to 2
Ben