save dataset in a specific exel sheet
이전 댓글 표시
hi everyone,
someone can tell me how can i save a dataset in a specific sheet from exel?
Thanks
채택된 답변
추가 답변 (1개)
Image Analyst
2014년 8월 8일
편집: Image Analyst
2014년 8월 8일
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
lih jo
2014년 8월 11일
Image Analyst
2014년 8월 11일
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
2014년 8월 11일
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!