[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Double problem in Matlab's magic.m
From: |
Henry F. Mollet |
Subject: |
Re: Double problem in Matlab's magic.m |
Date: |
Fri, 09 May 2003 19:01:15 -0700 |
User-agent: |
Microsoft-Entourage/10.1.1.2418 |
I've found the problem, the mod function used 'isscalar' in 4 places instead
of 'is_scalar'.
octave:22> M=magic(5)
M =
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
Henry
on 5/9/03 4:11 PM, Henry F. Mollet at address@hidden wrote:
> on 5/9/03 6:50 AM, Quentin Spencer at address@hidden wrote:
>
>> Henry F. Mollet wrote:
>>
>>> Presumably, 'mod' is modulus function but it's not in the GNU Octave
>>> Function Index (Hard Copy for Octave version 2.0.13) and help cannot find
>>> it in my copy either (GNU Octave, version 2.1.35 (powerpc-apple-darwin6.2).
>>> However, the Octave program 'magic' by PK is using it?
>>> Henry
>>>
>>>
>> The mod function was in octave-forge, but has been moved into the main
>> octave distribution sometime after 2.1.35. Here's the current CVS
>> version (minus some commented stuff at the end):
>>
>
> Thanks again but I'm not "there" yet. Apparently I also need 'isscalar"
> octave:14> M=magic(5)
> error: `isscalar' undefined near line 45 column 40
> CUT
> error: called from `mod' in file `/Users/mollet/ClassWWB/mod.m'
> error: called from `magic' in file `/Users/mollet/ClassWWB/magic.m'
> octave:14> help isscalar
> help: sorry, `isscalar' is not documented
>
> I probably should go to a more recent version of Octave but this is beyond
> my current capabilities as I needed help to install what I'm using now (Fink
> installation for Mac OS 10.2 which took overnight). I may have to wait or
> check if a binary is now available for Mac OS 10.2.6.
> Henry
>
>
>
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.octave.org
> How to fund new projects: http://www.octave.org/funding.html
> Subscription information: http://www.octave.org/archive.html
> -------------------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------