Conversing arbitrary length data files to matrix

バージョン 1.0.0.0 (604 Bytes) 作成者: 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 Center および MATLAB AnswersMatrices 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