fixed_width_import

버전 1.0.0.0 (1.8 KB) 작성자: Adriaan Van Nuffel
Imports data from fixed width text-files
다운로드 수: 926
업데이트 날짜: 2006/5/1

라이선스 없음

Reads data from a fixed width textfile (i.e. the numbers are arranged in columns that are a given number of characters wide). Non-numerical data is converted in NaN. You can use this function for reading very large files in chunks, because you have to specify the line where to start reading (first line = 1), and the number of lines you wish to read.

Input:
- filename (string): filename to open (you have to include the extension)
- startline (int): line where to start reading
- number_of_lines (int): number of lines you want to read
- columns_width (vector): A vector containing for each column it's width. (The width of a column is the number of characters it is wide.)

Output: a matrix containing the read data.

01/05/2006, Adriaan Van Nuffel

인용 양식

Adriaan Van Nuffel (2024). fixed_width_import (https://www.mathworks.com/matlabcentral/fileexchange/10866-fixed_width_import), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

Adapted suggestions by M-Lint.