MATLAB Answers

0

How to export line plot to excel (need it to be written as a code to be automatically executed)

Asked by Juniper Sohn on 8 Aug 2019
Latest activity Commented on by dpb
on 8 Aug 2019
Hi, I am trying to export a figure (type line), a line plot, into excel.
I have tried saving it as an image (wouldn't let me save it as .jpg) with an aim to export that image to excel, tried "xlswritefig", "export_fig", and "xlswrite", and none of them work.
Is there any other way that I can export this line plot to excel? And I need this to be executable as a code.
Thank you for your help.

  1 Comment

Probably easiest would be to create the plot in Excel and tie the data to a given range then just update that range.
Other than that, you need to use COM and then it's mostly an exercise in Excel syntax to do what you want...the Matlab part is just to open the connection and write the commands...nothing really to do w/ ML itself.

Sign in to comment.

0 Answers