Borrar filtros
Borrar filtros

How to save plots to the specified sheet in an existing Excel file?

2 visualizaciones (últimos 30 días)
DY
DY el 20 de Sept. de 2023
Editada: Florian Bidaud el 20 de Sept. de 2023
I use matlab to have some data processing to an Excel file that only contains rawdata in sheet1. The processed data will be generated and added to sheet2 and sheet3 of the oringinal Excel file.
Now I'd like to plot figures based on the data in sheet2 and save the figures in sheet2, also the same operation to sheet3. How can I realize that?

Respuestas (1)

Florian Bidaud
Florian Bidaud el 20 de Sept. de 2023
Editada: Florian Bidaud el 20 de Sept. de 2023
In the functions associated with Excel reading or writing, you usually have a 'Sheet' parameter, for example, to write on the second sheet:
writecell({'a' 1},'excel_file.xls','Sheet',2)
Or with the sheet name :
writecell({'a' 1},'excel_file.xls','Sheet','sheet name')

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by