save dataset in a specific exel sheet
Mostrar comentarios más antiguos
hi everyone,
someone can tell me how can i save a dataset in a specific sheet from exel?
Thanks
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 8 de Ag. de 2014
Editada: Image Analyst
el 8 de Ag. de 2014
Your wording is contradictory ("save from excel"). Not sure if you mean read from Excel or save to Excel, so I'll give both cases:
To retrieve a dataset from Excel ( into MATLAB), use
[numbers, textCells, rawCells] = xlsread(fullFileName, sheetname);
To save a dataset in a specific sheet to Excel ( from MATLAB to Excel)?
xlswrite(fullFileName, data, 'A1', sheetname);
3 comentarios
lih jo
el 11 de Ag. de 2014
Image Analyst
el 11 de Ag. de 2014
xlsread() does not send/export data from MATLAB to Excel. That's what xlswrite() does. Is there any reason why you think you must use export() instead of xlswrite() like Azzi showed you?
lih jo
el 11 de Ag. de 2014
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!