Conversing arbitrary length data files to matrix

版本 1.0.0.0 (604 字节) 作者: Steven Huang
This function uses dynamic memory allocation to converse a data file to a matrix
1.2K 次下载
更新时间 2005/7/14

无许可证

This function converts a data file into a matrix. The data stored in the file has arbitrary length. The function uses dynamic memory to predict the matrix size.

For example: if the data stored in a file named "data.dat" is:
1 2
3
4 5 6 7 8 9
10
After using A = File2Matrix('data.dat'), Matrix A has contents:
A =

1 2 0 0 0 0
3 0 0 0 0 0
4 5 6 7 8 9
10 0 0 0 0 0

引用格式

Steven Huang (2024). Conversing arbitrary length data files to matrix (https://www.mathworks.com/matlabcentral/fileexchange/8003-conversing-arbitrary-length-data-files-to-matrix), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0