Thread Subject: Automated figure copy-paste to Microsoft Word?

Subject: Automated figure copy-paste to Microsoft Word?

From: Mehrdad Yazdani

Date: 25 Aug, 2008 21:13:02

Message: 1 of 5

Hi,

I would like to have a way where MATLAB figures are
automatically pasted to a Word document. Anyone know how to
go about this?

Thanks,

Subject: Automated figure copy-paste to Microsoft Word?

From: Dan Haeg

Date: 25 Aug, 2008 21:21:02

Message: 2 of 5

"Mehrdad Yazdani" <mandmblues@gmail.com> wrote in message
<g8v78u$ml5$1@fred.mathworks.com>...
> Hi,
>
> I would like to have a way where MATLAB figures are
> automatically pasted to a Word document. Anyone know how to
> go about this?
>
> Thanks,

One way would be to publish the script that created the
figures, see the help for options.

Subject: Automated figure copy-paste to Microsoft Word?

From: Mehrdad Yazdani

Date: 25 Aug, 2008 21:58:01

Message: 3 of 5

"Dan Haeg" <haegd@msoe.edu> wrote in message
<g8v7nu$s79$1@fred.mathworks.com>...
> "Mehrdad Yazdani" <mandmblues@gmail.com> wrote in message
> <g8v78u$ml5$1@fred.mathworks.com>...
> > Hi,
> >
> > I would like to have a way where MATLAB figures are
> > automatically pasted to a Word document. Anyone know how to
> > go about this?
> >
> > Thanks,
>
> One way would be to publish the script that created the
> figures, see the help for options.

Thanks for the suggestion, but I'm afraid I don't exactly
follow what you mean. Could you clarify a bit more please?

Subject: Automated figure copy-paste to Microsoft Word?

From: Dan Haeg

Date: 29 Aug, 2008 18:42:01

Message: 4 of 5

> > >
> > > I would like to have a way where MATLAB figures are
> > > automatically pasted to a Word document. Anyone know
how to
> > > go about this?
> > >
> > > Thanks,
> >
> > One way would be to publish the script that created the
> > figures, see the help for options.
>
> Thanks for the suggestion, but I'm afraid I don't exactly
> follow what you mean. Could you clarify a bit more please?

if you have a bunch of figures open in matlab you can make a
script that loops through all of the figures and changes
something. if you "publish" this script matlab will make a
word document with all of your figures.

save the below code as a script:
%% make available figures active
h=findobj('type','figure');
for ind=1:length(h)
    figure(h(ind))
    grid on
end

run this from the commandline:
publish('your script name goes here','doc')
winopen(ans)

Subject: Automated figure copy-paste to Microsoft Word?

From: Anish

Date: 29 Aug, 2008 19:57:01

Message: 5 of 5

Probably the function save2word is what you are looking for:

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3149

AA

"Mehrdad Yazdani" <mandmblues@gmail.com> wrote in message
<g8v78u$ml5$1@fred.mathworks.com>...
> Hi,
>
> I would like to have a way where MATLAB figures are
> automatically pasted to a Word document. Anyone know how to
> go about this?
>
> Thanks,

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
 

MATLAB Central Terms of Use

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 Terms prior to use.

Contact us at files@mathworks.com