Path: news.mathworks.com!not-for-mail
From: "Donn Shull" <donn.shull.no_spam@aetoolbox.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to Export Data?
Date: Wed, 20 Aug 2008 16:15:03 +0000 (UTC)
Organization: L &#38; D Engineering LLC
Lines: 40
Message-ID: <g8hfu7$r7e$1@fred.mathworks.com>
References: <g8h8v2$gj8$1@fred.mathworks.com>
Reply-To: "Donn Shull" <donn.shull.no_spam@aetoolbox.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1219248903 27886 172.30.248.38 (20 Aug 2008 16:15:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 20 Aug 2008 16:15:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 219306
Xref: news.mathworks.com comp.soft-sys.matlab:486496



"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