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: Philip Nienhuis
Subject: Re: How to write cell array to csv file
Date: Thu, 18 Oct 2012 12:28:09 -0700 (PDT)

Terry Duell wrote
> 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?

The warnings are harmless I think.

The error message is due to processing of PKG_ADD. 
I (and/or Nitzan who came up with it) have to think up a better mechanism
for adding the Java class libs (.jar files) to the javaclasspath (which is
the job that chk_spreadsheet_support() is supposed to do).

I have never encountered that error myself on any system I've installed
Octave on, so I have no cure for it if this error can't be solved by
deinstalling earlier io versions and/or wiping the io installation dirs in
.../share/octave/packages/ and .../lib/octave/packages/ *and* a "pkg
rebuild" afterwards.

Except - if you can manage- wiping the PKG_ADD file out of the
io-<version>.tar.gz before installing, but I'd consider that a last resort.

Philip




--
View this message in context: 
http://octave.1599824.n4.nabble.com/How-to-write-cell-array-to-csv-file-tp4645350p4645452.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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