How to read multiple matrices separately from .txt file
Afficher commentaires plus anciens
Here is a .txt file like
matrixdata
matrix1
BEGIN
111
111
.
.
.
111
END
matrix2
BEGIN
222
222
222
.
.
.
222
END
There are several matrices and each is between "BIGIN" and "END" string.
I tried reading this by using "readmatrix" function.
Then, matrices were combined and read as one matrix like
111
111
.
.
.
111
222
222
222
.
.
.
222
Is there any good way to read matrices separately for every "BIGIN" and "END"?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Large Files and Big Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!