MATLAB Answers

How to Write Output Figure with Table inside to Excel

5 views (last 30 days)
Murat Kocaman
Murat Kocaman on 8 Oct 2018
Commented: Murat Kocaman on 17 Oct 2018
I have an image output with a table on my code:
I am trying to export this result to an excel file which I create each save with figure and results table.
Could anyone assist on the issue?
I have already tried below:
writetable(table(result), 'Result.xlsx', 'WriteVariableNames', true) xlswritefig(gcf, 'Results.xlsx', 'Sheet1', 'D2')
This gave the error which indicates excel is not able to be created and much more.


Show 3 older comments
Jan on 17 Oct 2018
@Murat Kocaman: You ignore my questions for clarifications yet.

Sign in to comment.

Answers (1)

ANKUR KUMAR on 8 Oct 2018
"I have an image output with a table on my code"
You can directly write this table in excel using xlswrite.
A=randi(10,5,6) %load your table in place of this command
If you specifically wish to start writing with specific sheet and cell, then use this

  1 Comment

Murat Kocaman
Murat Kocaman on 12 Oct 2018
I used this one. It extract the table values but not figure.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!