From: Luna Moon on
In Matlab, I have a cell array of strings which represents the dates.

And also have a numerical array of data points, each row of data
corresponding to the date...

I want to output these into CSV file.

How do I do that?

I just couldn't figure out a way to do it.

I have to write out to Excel and then convert back to CSV...

quite manual.

Please help me! Thank you!
From: us on
Luna Moon <lunamoonmoon(a)gmail.com> wrote in message <ce9dc681-4c91-448c-9d91-849c332078be(a)i31g2000yqm.googlegroups.com>...
> In Matlab, I have a cell array of strings which represents the dates.
>
> And also have a numerical array of data points, each row of data
> corresponding to the date...
>
> I want to output these into CSV file.
>
> How do I do that?
>
> I just couldn't figure out a way to do it.
>
> I have to write out to Excel and then convert back to CSV...
>
> quite manual.
>
> Please help me! Thank you!

a hint:
- this FEX submission does what you want/need...

http://www.mathworks.com/matlabcentral/fileexchange/23840

us
From: Luna Moon on
On Jul 20, 2:08 pm, "us " <u...(a)neurol.unizh.ch> wrote:
> Luna Moon <lunamoonm...(a)gmail.com> wrote in message <ce9dc681-4c91-448c-9d91-849c33207...(a)i31g2000yqm.googlegroups.com>...
> > In Matlab, I have a cell array of strings which represents the dates.
>
> > And also have a numerical array of data points, each row of data
> > corresponding to the date...
>
> > I want to output these into CSV file.
>
> > How do I do that?
>
> > I just couldn't figure out a way to do it.
>
> > I have to write out to Excel and then convert back to CSV...
>
> > quite manual.
>
> > Please help me! Thank you!
>
> a hint:
> - this FEX submission does what you want/need...
>
> http://www.mathworks.com/matlabcentral/fileexchange/23840
>
> us

I don't see how to use this for my purpose.
From: us on
Luna Moon <lunamoonmoon(a)gmail.com> wrote in message <0d4790bc-26d4-4eb5-821b-3c1d18f58064(a)l14g2000yql.googlegroups.com>...
> On Jul 20, 2:08 pm, "us " <u...(a)neurol.unizh.ch> wrote:
> > Luna Moon <lunamoonm...(a)gmail.com> wrote in message <ce9dc681-4c91-448c-9d91-849c33207...(a)i31g2000yqm.googlegroups.com>...
> > > In Matlab, I have a cell array of strings which represents the dates.
> >
> > > And also have a numerical array of data points, each row of data
> > > corresponding to the date...
> >
> > > I want to output these into CSV file.
> >
> > > How do I do that?
> >
> > > I just couldn't figure out a way to do it.
> >
> > > I have to write out to Excel and then convert back to CSV...
> >
> > > quite manual.
> >
> > > Please help me! Thank you!
> >
> > a hint:
> > - this FEX submission does what you want/need...
> >
> > http://www.mathworks.com/matlabcentral/fileexchange/23840
> >
> > us
>
> I don't see how to use this for my purpose.

did you look at the section
- output files
creating output files
in the published M-file

http://www.mathworks.com/matlabcentral/fx_files/23840/14/content/cphelp.html

us
From: Luna Moon on
On Jul 20, 2:40 pm, "us " <u...(a)neurol.unizh.ch> wrote:
> Luna Moon <lunamoonm...(a)gmail.com> wrote in message <0d4790bc-26d4-4eb5-821b-3c1d18f58...(a)l14g2000yql.googlegroups.com>...
> > On Jul 20, 2:08 pm, "us " <u...(a)neurol.unizh.ch> wrote:
> > > Luna Moon <lunamoonm...(a)gmail.com> wrote in message <ce9dc681-4c91-448c-9d91-849c33207...(a)i31g2000yqm.googlegroups.com>...
> > > > In Matlab, I have a cell array of strings which represents the dates.
>
> > > > And also have a numerical array of data points, each row of data
> > > > corresponding to the date...
>
> > > > I want to output these into CSV file.
>
> > > > How do I do that?
>
> > > > I just couldn't figure out a way to do it.
>
> > > > I have to write out to Excel and then convert back to CSV...
>
> > > > quite manual.
>
> > > > Please help me! Thank you!
>
> > > a hint:
> > > - this FEX submission does what you want/need...
>
> > >http://www.mathworks.com/matlabcentral/fileexchange/23840
>
> > > us
>
> > I don't see how to use this for my purpose.
>
> did you look at the section
> - output files
>   creating output files
> in the published M-file
>
> http://www.mathworks.com/matlabcentral/fx_files/23840/14/content/cphe...
>
> us


I have looked at output files. But I don't know how to first output
dates and then output data points and align the data points with the
dates...