To access a chart object in Excel 2007 from MATLAB 7.8 (R2009a),
1) Start Excel as an ACTXSERVER application in MATLAB.
2) Open the Excel workbook.
3) Open the worksheet that contains the chart.
4) Get the Chart object to modify.
5) Implement the code that modifies the elements of the existing chart.
The following code provides an example on how to achieve this.
excel = actxserver('excel.application')
wkbk = excel.Workbooks.Open('Book1.xlsx')
wksheet = wkbk.Worksheets.Item('Sheet1')
co = wksheet.ChartObjects.Item(1)
co.Chart.ChartTitle.Text ='myplot1'
wkbk.Save
excel.Quit
Also, see the link below for the way to do it using Microsoft Visual Studio with C# and Visual Basic:
<http://msdn.microsoft.com/en-us/library/bb404904.aspx>
Best Answer