[Top][All Lists]

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

Re: implementing num2cell?

From: David Bateman
Subject: Re: implementing num2cell?
Date: Mon, 24 Oct 2005 18:20:05 +0200
User-agent: Mozilla Thunderbird 0.8 (X11/20040923)

address@hidden wrote:


I've been trying to get matrix2latex to work with Octave & found David
Bateman's num2cell -- but I'm running into problems with that. I'm
wondering if I introduced num2cell into the system incorrectly, since I
copied & pasted his C text into pico & wrote num2cell.m from that. The
errors are parsing errors (somewhat corrected by adding %'s) and syntax
errors (after sig).

The current num2cell _is_ in an appropriate path directory, but should I
try deleting it and "reinstalling" some other way?



----------------Error message:---------------
parse error near line 17 of file

 syntax error

DEFUN_DLD (num2cell, args, ,

parse error near line 25 of file

 syntax error

at seealso{mat2cell}")

parse error near line 27 of file

 syntax error

 int nargin =  args.length();

error: near line 27 of file
error: evaluating assignment expression near line 103, column 16
error: evaluating if command near line 102, column 5
error: called from `matrix2latex' in file

I never wrote num2cell for 2.1.x and so I don't think it will compile. But if you are worried about typo's and cut-and-paste errors, I commited it briefly to octave-forge and so its in the CVS Attic at

Maybe if you replace "octave_idx_type" with "int" it might compile on 2.1.x though I haven't tried. Note the code is in C++ and must be compiled with "mkoctfile" before being used..


David Bateman                                address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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