How to Write Output Figure with Table inside to Excel
Ältere Kommentare anzeigen
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.
6 Kommentare
Jan
am 8 Okt. 2018
Please do not let the readers guess what you are doing and what you observe. xlswritefig does not belong to Matlab's toolbox, so please mention, which software you are using. Post the complete error message and explain what "much more" means.
ANKUR KUMAR
am 8 Okt. 2018
Is that matrix or matlab table?
Murat Kocaman
am 9 Okt. 2018
ANKUR KUMAR
am 9 Okt. 2018
Attach .mat file containing matlab table.
Murat Kocaman
am 17 Okt. 2018
Antworten (1)
ANKUR KUMAR
am 8 Okt. 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
xlswrite('sample.xlsx',A)
If you specifically wish to start writing with specific sheet and cell, then use this
xlswrite('sample.xlsx',A,'sheet1','A1')
1 Kommentar
Murat Kocaman
am 12 Okt. 2018
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!