csv2struct(filename​)

버전 1.0.0.0 (2.12 KB) 작성자: Jaroslaw Tuszynski
reads Excel's files stored in .csv or .xls file formats and stores results as a struct
다운로드 수: 5.4K
업데이트 날짜: 2016/2/22

라이선스 보기

CSV2STRUCT reads Excel's files stored in .xls or .csv file formats and stores results as a struct.
DESCRIPTION
The Excel file is assumed to have a single header row. The output struct will have a field for each column and the field name will be based on the column name read from the header.
Unlike csvread, csv2struct is able to read files with both text and number fields and store data as fields of a struct. Likely works on Windows machines only.

See also:
MATLAB's csvread and xlsread functions
xml_read from my xml_io_tools which creates struct out of xml files

인용 양식

Jaroslaw Tuszynski (2024). csv2struct(filename) (https://www.mathworks.com/matlabcentral/fileexchange/26106-csv2struct-filename), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Updated syntax and removed no longer needed code for reading CSV files with more than 2^16 rows. Excel no longer has that limitation.