fixed_width_import

Imports data from fixed width text-files
927.0 次下载
更新时间 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.