MATLAB: Export Table from Matlab Guide to Excel

excelexportmatlab guidetable

Hello everyone!
I am having serious trouble trying to export a TABLE from MATLAB GUIDE to EXCEL with a PUSH BUTTON.
How would I go about coding this exactly under a push button?
And under which function would I code this under?
Thank you very much for your help!

Best Answer

This would be a lot easier in App Designer because the uitable data can just be a MATLAB table. I'd strongly encourage you to move to app designer. And in R2020a, the migration tool (has existed but is greatly improved) has made it even easier.