How to read in a Matrix from an .mtx file?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everyone,
I need to read in a matrix from a .mtx file. I know that the command 'readmtx' exists, but I don't know how to define where the matrix is exactly in the document. There are several lines above, which need to be skipped.
Thanks in advance, Michael
2 Kommentare
Jayaram Theegala
am 2 Feb. 2017
I agree with Jan Simon. Using the "readmtx" function you can read the entire file (it contains the "several lines" and the matrix you are interested). Once you have the "several" answered, you can find out its size and separate the matrix you are interested from the entire data.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!