How to export data to excel
조회 수: 2 (최근 30일)
이전 댓글 표시
How can I export data to Excel, if I have the following .txt file, separated with commas.
HTSGW, [m], 197901010000, 197901010000, 0.000 HTSGW, [m], 197901010000, 197901010300, 0.220 HTSGW, [m], 197901010000, 197901010600, 0.420 HTSGW, [m], 197901010000, 197901010900, 0.560 HTSGW, [m], 197901010000, 197901011200, 2.190
댓글 수: 1
채택된 답변
Andrei Bobrov
2016년 7월 1일
f = fopen('yourtextfile.txt');
c = textscan(f,'%s %s %s %s %s','delimiter',',');
fclose(f);
xlswrite('nameyourxlsxfile.xlsx',[c{:}])
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!