Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
output regression report to a text file

Subject: output regression report to a text file

From: dhuan Du

Date: 28 Sep, 2010 20:28:06

Message: 1 of 2

Hi

I am using [b,se,pval,inmodel,stats,nextstep,history] = stepwisefit(...) functionin in matlab to do regression analysis. Could anybody let me know how to write the regression results (like a report inclduing model report, steps, p value, F-test and so on ) to a file? I know oneway to do that is write every output vector one by one. I wonder if there is an easy to do write all of them into a file by one or two command lines?

Thanks,

Lili

Subject: output regression report to a text file

From: Richard Willey

Date: 29 Sep, 2010 13:59:51

Message: 2 of 2

Hi Lili

MATLAB supports a "Publish" option which can be accessed through the File
menu.
If you type "help publish" at the command line you should get all the
information you need.

regards,

Richard


"dhuan Du" <dupeony@gmail.com> wrote in message
news:i7tj4m$qq$1@fred.mathworks.com...
> Hi
> I am using [b,se,pval,inmodel,stats,nextstep,history] = stepwisefit(...)
> functionin in matlab to do regression analysis. Could anybody let me know
> how to write the regression results (like a report inclduing model report,
> steps, p value, F-test and so on ) to a file? I know oneway to do that is
> write every output vector one by one. I wonder if there is an easy to do
> write all of them into a file by one or two command lines?
>
> Thanks,
>
> Lili

Tags for this Thread

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.

Contact us