Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: How to export a plot to excel?

Subject: How to export a plot to excel?

From: Yoav Rubin

Date: 21 Oct, 2007 05:37:25

Message: 1 of 4

Hi All,

I have a plot with several line in it (using hold off), and
I'd like somehow to export this plot to excel, so that in
the excel file I'll have a similar graph, with the similar
lines. Can i do it or do I have to use xlswrite to export
all the XDatas and YDatas of the lines and afterwards
manually re-build the graph in excel?

Thanks
Yoav


Subject: Re: How to export a plot to excel?

From: Yair Altman

Date: 21 Oct, 2007 14:35:51

Message: 2 of 4

"Yoav Rubin" <yoavrubin@hotmail.com> wrote in message
<ffeoil$ipv$1@fred.mathworks.com>...
> Hi All,
>
> I have a plot with several line in it (using hold off), and
> I'd like somehow to export this plot to excel, so that in
> the excel file I'll have a similar graph, with the similar
> lines. Can i do it or do I have to use xlswrite to export
> all the XDatas and YDatas of the lines and afterwards
> manually re-build the graph in excel?
>
> Thanks
> Yoav


You can export a screenshot of the plot using OfficeDoc -
http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=15192&objectType=FILE

Yair Altman
http://ymasoftware.com

Subject: Re: How to export a plot to excel?

From: Hans Christian petersen

Date: 02 Nov, 2007 12:59:20

Message: 3 of 4

"Yoav Rubin" <yoavrubin@hotmail.com> wrote in message
<ffeoil$ipv$1@fred.mathworks.com>...
> Hi All,
>
> I have a plot with several line in it (using hold off),
and
> I'd like somehow to export this plot to excel, so that in
> the excel file I'll have a similar graph, with the similar
> lines. Can i do it or do I have to use xlswrite to export
> all the XDatas and YDatas of the lines and afterwards
> manually re-build the graph in excel?
>
> Thanks
> Yoav
>
> Hi all,
I have the same problem as Yoav needing a Matlab figure
inserted in an Excel sheet. Using the free version of
OfficeDoc on an existing workbook resulted in a picture on
sheet1 allright but also that a couple of nondefault sheets
containing data were deleted !!! (I did use the append mode
when opening )
Is the proffesional version of OfficeDoc any better ?

Subject: Re: How to export a plot to excel?

From: Yair Altman

Date: 03 Nov, 2007 16:34:41

Message: 4 of 4

"Hans Christian petersen" <hcpetersen2@sauer-danfoss.com>
wrote in message <fgf6v8$6ls$1@fred.mathworks.com>...
> "Yoav Rubin" <yoavrubin@hotmail.com> wrote in message
> <ffeoil$ipv$1@fred.mathworks.com>...
> > Hi All,
> >
> > I have a plot with several line in it (using hold off),
> and
> > I'd like somehow to export this plot to excel, so that in
> > the excel file I'll have a similar graph, with the similar
> > lines. Can i do it or do I have to use xlswrite to export
> > all the XDatas and YDatas of the lines and afterwards
> > manually re-build the graph in excel?
> >
> > Thanks
> > Yoav
> >
> > Hi all,
> I have the same problem as Yoav needing a Matlab figure
> inserted in an Excel sheet. Using the free version of
> OfficeDoc on an existing workbook resulted in a picture on
> sheet1 allright but also that a couple of nondefault sheets
> containing data were deleted !!! (I did use the append mode
> when opening )
> Is the proffesional version of OfficeDoc any better ?


No Excel sheets should have been deleted unless the 'DelStd'
parameter was specifically requested. The professional
version is no different than the free version in this respect.

Please post you OfficeDoc commands and Excel worksheet names
here (or email me directly) and I'll try to figure out the
problem.

Thanks,
Yair Altman
http://ymasoftware.com

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
plot Yoav Rubin 21 Oct, 2007 01:40:05
export Yoav Rubin 21 Oct, 2007 01:40:04
excel Yoav Rubin 21 Oct, 2007 01:40:04
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics