[Top][All Lists]

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

Re: Knight's tour

From: Kai Torben Ohlhus
Subject: Re: Knight's tour
Date: Thu, 7 Feb 2019 17:38:07 +0100

On Wed, Feb 6, 2019 at 7:57 PM SimonAllen <address@hidden> wrote:
I am very new to Matlab and I am using Octave.  I am trying to get the Matlab
code that is is at to run.  It follows on from a
Numberphle video on Knight's tour.  I have already discovered that Matlab
paths do not like upper case or spaces in paths and filenames and I have
fixed that but in line 52 of the code there is this command

      xy2num = @(x,y) SpiralNumbering(x,y);

It is not referenced anywhere else.

Octave gives this error

error: 'spiralnumbering' undefined near line 52 column 25
error: called from
    knightstour>@<anonymous> at line 52 column 25
    knightstour at line 78 column 19
I am at the moment baffled.  Can anyone throw any light on this?

The actual code is  The error message is the solution to the problem: the author, Daniël Karssen, forgot to add the function "SpiralNumbering" to his contribution.  Just to be sure, I checked with Matlab and it doesn't work there either.  Maybe you just ask the author to provide the missing function.


reply via email to

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