Thread Subject: How to Export Data?

Subject: How to Export Data?

From: Tom Choi

Date: 20 Aug, 2008 14:16:03

Message: 1 of 3

Hi All,
I have smoothed my data using cfttool, with 'loess'
smoothing. Cfttool shows me the graph of the smoothed data.
 However, this is not what I want. What I want is the
individual x and y data values for the smoothed data. How
can I export it onto a text or excel file? All I can get
cfttool to do is to export it onto a struct. array onto the
workspace. I can't get any further than that. Can somebody
help me?

Subject: How to Export Data?

From: Donn Shull

Date: 20 Aug, 2008 16:15:03

Message: 2 of 3

"Tom Choi" <style01@hotmail.co.uk> wrote in message <g8h8v2
$gj8$1@fred.mathworks.com>...
> Hi All,
> I have smoothed my data using cfttool, with 'loess'
> smoothing. Cfttool shows me the graph of the smoothed
data.
> However, this is not what I want. What I want is the
> individual x and y data values for the smoothed data. How
> can I export it onto a text or excel file? All I can get
> cfttool to do is to export it onto a struct. array onto
the
> workspace. I can't get any further than that. Can
somebody
> help me?

There are so many ways to do what you want to do. For
example if your data set is small you could display it on
the screen with:

disp([analysisresults1.xi, analysisresults1.yfit]);

then select the displayed results with your mouse copy them
and paste them into an editor.

You could assign the results to an array:

a = ([analysisresults1.xi, analysisresults1.yfit];

to make it easy to try various things like:

csvwrite('foo.csv', a);

xlswrite('foo.xls', a);

dlmwrite('foo.txt', a, ' ');

etc

Donn

Subject: How to Export Data?

From: Tom Choi

Date: 20 Aug, 2008 17:57:01

Message: 3 of 3

thanks alot...it seems to be workig now!

"Donn Shull" <donn.shull.no_spam@aetoolbox.com> wrote in
message <g8hfu7$r7e$1@fred.mathworks.com>...
> "Tom Choi" <style01@hotmail.co.uk> wrote in message <g8h8v2
> $gj8$1@fred.mathworks.com>...
> > Hi All,
> > I have smoothed my data using cfttool, with 'loess'
> > smoothing. Cfttool shows me the graph of the smoothed
> data.
> > However, this is not what I want. What I want is the
> > individual x and y data values for the smoothed data. How
> > can I export it onto a text or excel file? All I can get
> > cfttool to do is to export it onto a struct. array onto
> the
> > workspace. I can't get any further than that. Can
> somebody
> > help me?
>
> There are so many ways to do what you want to do. For
> example if your data set is small you could display it on
> the screen with:
>
> disp([analysisresults1.xi, analysisresults1.yfit]);
>
> then select the displayed results with your mouse copy them
> and paste them into an editor.
>
> You could assign the results to an array:
>
> a = ([analysisresults1.xi, analysisresults1.yfit];
>
> to make it easy to try various things like:
>
> csvwrite('foo.csv', a);
>
> xlswrite('foo.xls', a);
>
> dlmwrite('foo.txt', a, ' ');
>
> etc
>
> Donn
>

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com