How to read multiple matrices separately from .txt file
Show older comments
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"?
Accepted Answer
More Answers (0)
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!