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

Contact us at files@mathworks.com