필터 지우기
필터 지우기

Loading a text file and generating a .xls file from that

조회 수: 1 (최근 30일)
Sanwal Yousaf
Sanwal Yousaf 2016년 1월 5일
답변: Walter Roberson 2016년 1월 5일
I was wondering if there were any functions or a way that i could look at where i could import or load a .txt file and convert it to .xls file automatically rather than doing it manually.

채택된 답변

Walter Roberson
Walter Roberson 2016년 1월 5일
You would need at least two calls.
xlswrite('YourOutput.xls', load('TheTextFile.txt', '-ascii'));
For this short form to work, the txt file would have to consist of pure numeric values, the same number of columns in every row, and space separated. If that is not the format of your .txt file then the processing involved might be longer.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by