Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Inserting figures into excel file from matlab 1

Status
Not open for further replies.

aftab1972

Mechanical
Mar 6, 2006
2
0
0
US
I have been trying to insert figures into an already existing Excel file that are generated in Matlab. A utility in COM server does that (an example is there in Help section of Matlab) but it inserts the figure into a brand new file. does anybody know how to insert it into an existing excel file?
Thanks
 
Replies continue below

Recommended for you

try this:

kk=actxserver('excel.application')
% kk.get % this will show all properties
kkmbs=kk.Workbooks
% kkmbs.invoke % this will show all methods
kkmbs.Open('c:\myoldfile.xls')
% myoldfile.xls is a previously created excell file
% now you can work with kkmbs

- hope it helps...
NoQue
 
Status
Not open for further replies.
Back
Top