help-octave
[Top][All Lists]
Advanced

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

Fwd: How to write cell array to csv file


From: Dmitri A. Sergatskov
Subject: Fwd: How to write cell array to csv file
Date: Wed, 17 Oct 2012 01:19:38 -0500

---------- Forwarded message ----------
From: Dmitri A. Sergatskov <address@hidden>
Date: Wed, Oct 17, 2012 at 1:18 AM
Subject: Re: How to write cell array to csv file
To: Terry Duell <address@hidden>


On Tue, Oct 16, 2012 at 11:44 PM, Terry Duell <address@hidden> wrote:
> Hullo All,
> I am having trouble writing out the contents of a cell array to a csv file.
> I have a string variable and a number of numeric variables that I have put
> into a cell, eg
>
> datacsv = { string1, T1, T2, T3}
>
> I then want to write the cell out to a csv file, eg
>
> csvwrite('testcsv', datacsv)


Besides the fact that cswrite works only for matrix arguments,
what do you expect to see as an output?
E.g.

string1="String1"
T1=1
T2=[1,2]
T3=[1,2,3]'

datacsv = { string1, T1, T2, T3}

datacsv =
{
  [1,1] = String1
  [1,2] =  1
  [1,3] =

     1   2

  [1,4] =

     1
     2
     3

}

What do you expect the resulting output file to look like?

Dmitri.
--


reply via email to

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