Conversing arbitrary length data files to matrix
Nessuna licenza
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
Cita come
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. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |