help-octave
[Top][All Lists]
Advanced

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

Re: How to write cell array to csv file


From: Terry Duell
Subject: Re: How to write cell array to csv file
Date: Thu, 18 Oct 2012 08:48:27 +1100
User-agent: Opera Mail/11.64 (Linux)

On Thu, 18 Oct 2012 06:05:55 +1100, Philip Nienhuis <address@hidden> wrote:

Terry Duell wrote
[snip]
Is there a way of writing out mixed string and numeric data in the one csv
record? If so could some one please point me in the right direction.

You could try cell2csv() and csvconcat() in the latest io package versions.

That looks as though it might help.
I tried to install and ended up with errors, as follows...

octave:2> pkg install -forge io
xmltree_read.l: In function ‘xml_lex’:
xmltree_read.l:407:45: warning: operation on ‘pcdata’ may be undefined [-Wsequence-point] xmltree_read.l:492:45: warning: operation on ‘pcdata’ may be undefined [-Wsequence-point] xmltree_read.l:627:48: warning: operation on ‘pcdata’ may be undefined [-Wsequence-point] xmltree_read.l:673:43: warning: operation on ‘pcdata’ may be undefined [-Wsequence-point] xmltree_read.l:726:43: warning: operation on ‘pcdata’ may be undefined [-Wsequence-point]
xmltree_read.act: At top level:
xmltree_read.l:150:13: warning: ‘bufferliteral’ defined but not used [-Wunused-function] xmltree_read.l:1221:12: warning: ‘input’ defined but not used [-Wunused-function]
xmltree_read.act: In function ‘xml_lex’:
xmltree_read.l:818:1: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result [-Wunused-result] warning: load_path: /home/terry/octave/io-1.0.20/x86_64-redhat-linux-gnu-api-v48+: No such file or directory
`chk_spreadsheet_support' undefined near line 12 column 18
error: called from `/home/terry/octave/io-1.0.20/x86_64-redhat-linux-gnu-api-v48+/PKG_ADD' in file /home/terry/octave/io-1.0.20/x86_64-redhat-linux-gnu-api-v48+/PKG_ADD near line 12, column 16
error: called from:
error:   /usr/share/octave/3.6.3/m/pkg/pkg.m at line 868, column 5
error:   /usr/share/octave/3.6.3/m/pkg/pkg.m at line 383, column 9

I am running Octave 3.6.3 on Fedora 17 x86_64, and installed from the Fedora repositories. The io pkg isn't available on the Fedora repos, hence the install directly from octave-forge.
It isn't clear to me what the problem is with the io install.
When I look in /home/terry/octave I find io-1.0.14, which makes the reference to io-1.0.20 a bit confusing.
Perhaps it didn't actually install anything.
I'll have another try.

Anyone have any ideas?


Cheers,
--
Regards,
Terry Duell


reply via email to

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