Thread Subject: Output to text file

Subject: Output to text file

From: Jeremy Bing

Date: 25 Jun, 2009 10:31:01

Message: 1 of 6

Hi,

I have floating point data inside of a cell array and I want to output this to a text file and I can't find the best method.

Kind Regards,

Jeremy

Subject: Output to text file

From: Rune Allnor

Date: 25 Jun, 2009 10:47:51

Message: 2 of 6

On 25 Jun, 12:31, "Jeremy Bing" <jer...@mytrashmail.com> wrote:
> Hi,
>
> I have floating point data inside of a cell array and I want to output this to a text file and I can't find the best method.

What methods have you considered? What's wrong with them?
Why does 'best' matter?

Rune

Subject: Output to text file

From: Jeremy Bing

Date: 25 Jun, 2009 10:56:01

Message: 3 of 6

Rune Allnor <allnor@tele.ntnu.no> wrote in message <69e1ce68-3fa6-4c98-8e46-4834051c20fc@f16g2000vbf.googlegroups.com>...
> On 25 Jun, 12:31, "Jeremy Bing" <jer...@mytrashmail.com> wrote:
> > Hi,
> >
> > I have floating point data inside of a cell array and I want to output this to a text file and I can't find the best method.
>
> What methods have you considered? What's wrong with them?
> Why does 'best' matter?
>
> Rune

Hi Rune,

Well i was looking at fprintf but i saw that someone was having problems outputing to a textfile with multiple columns. I want to output about 15 files at the same time. so i was thinking of writing a loop but the computation time maybe expensive. I am looking for a method to output to a text file with space delimited.

Thanks,

Jeremy

Subject: Output to text file

From: us

Date: 25 Jun, 2009 10:59:03

Message: 4 of 6

"Jeremy Bing" <jeremy@mytrashmail.com> wrote in message <h1vjl5$6ed$1@fred.mathworks.com>...
> Hi,
>
> I have floating point data inside of a cell array and I want to output this to a text file and I can't find the best method.
>
> Kind Regards,
>
> Jeremy

this FEX submission should be helpful...

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

us

Subject: Output to text file

From: Jeremy Bing

Date: 25 Jun, 2009 11:13:01

Message: 5 of 6

"us " <us@neurol.unizh.ch> wrote in message <h1vl9m$lku$1@fred.mathworks.com>...
> "Jeremy Bing" <jeremy@mytrashmail.com> wrote in message <h1vjl5$6ed$1@fred.mathworks.com>...
> > Hi,
> >
> > I have floating point data inside of a cell array and I want to output this to a text file and I can't find the best method.
> >
> > Kind Regards,
> >
> > Jeremy
>
> this FEX submission should be helpful...
>
> http://www.mathworks.com/matlabcentral/fileexchange/23840
>
> us

Hi,

Okay I will have a go at using the Flex. Thanks

Regards,

Jeremy

Subject: Output to text file

From: Rune Allnor

Date: 25 Jun, 2009 11:45:40

Message: 6 of 6

On 25 Jun, 12:56, "Jeremy Bing" <jer...@mytrashmail.com> wrote:
> Rune Allnor <all...@tele.ntnu.no> wrote in message <69e1ce68-3fa6-4c98-8e46-4834051c2...@f16g2000vbf.googlegroups.com>...
> > On 25 Jun, 12:31, "Jeremy Bing" <jer...@mytrashmail.com> wrote:
> > > Hi,
>
> > > I have floating point data inside of a cell array and I want to output this to a text file and I can't find the best method.
>
> > What methods have you considered? What's wrong with them?
> > Why does 'best' matter?
>
> > Rune
>
> Hi Rune,
>
> Well i was looking at fprintf but i saw that someone was having problems outputing to a textfile with multiple columns.

FPRINTF is what you need. You just need to learn
how to use it.

> I want to output about 15 files at the same time. so i was thinking of writing a loop but the computation time maybe expensive.

Forget what you think you know. Textfiles take time
no matter what. Expect 30 - 45 seconds per 100 MByte.

> I am looking for a method to output to a text file with space delimited.

FPRINTF.

Rune

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
file exchange us 25 Jun, 2009 07:04:04
reference us 25 Jun, 2009 07:04:04
fex us 25 Jun, 2009 07:04:04
fprintf recep mansiz 25 Jun, 2009 07:02:34
rssFeed for this Thread

Contact us at files@mathworks.com