How can I add chart in a specific sheet in an excel workbook via Matlab?

조회 수: 2 (최근 30일)
I would like to add a chart in a specific sheet in an excel workbook via Matlab? Is this possible?

채택된 답변

Gareth Thomas
Gareth Thomas 2016년 10월 4일
There are a few ways of doing this:
- If you use MATLAB Spreadsheet link Spreadsheet link this will enable you from Excel to call MATLAB and bring in MATLAB plots
- Some people like using Excel graphs and use MATLAB to refresh the data. So if have the data in MATLAB, and writetable or xlswrite to a specific sheet, then you can have the Excel create a chart based on that range, all you need is to update the chart.
- It is also possible to control Excel from MATLAB via the COM interface, however this takes a little more work.
- It is also possible to create an excel add-in with MATLAB Compiler SDK, that takes your MATLAB function and embeds it in Excel.
  댓글 수: 4
Gareth Thomas
Gareth Thomas 2016년 10월 4일
I believe you are looking for something like this. See this thread.
George Kouskoulis
George Kouskoulis 2016년 10월 6일
Thank you very much Thomas!
I saw the thread and my problem is solved.
Another question is that whether you can create a chart in a excel workbook with many sheets and the data for your chart come from more than one sheets of the workbook?
Thank you in advance!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by