Very simple and small program to export a MATLAB fig or plot to a specific excel file. (location of the plot in the excel file can be changed by changing the "Range" variable... )
Amit (2020). Exporting a MATLAB plot/figure to Excel (https://www.mathworks.com/matlabcentral/fileexchange/23239-exporting-a-matlab-plot-figure-to-excel), MATLAB Central File Exchange. Retrieved .
Luisa, from your comment it looks like you wish to have MATLAB figure exported to excel with all its properties such as rotate, pan, zoom. If that's the case, try MATLAB compiler for excel add-in. Let me know if it helps.
Its only a picture
Is there any way to upload the graph in that particular excel sheet from where program read the data?
and what if we have 3 sheets in one excel?
Next version of this script:
@Fredrik: Yes, it is possible. I am uploading improved version of this file.
Is there a way to get the plot in sheet 2, 3 or possibly n?
Only exports as a picture