How to open a .txt file in matlab that has many elements?


When the array has few elements the dlmread command works but in the case of a high order array it doesn't. I would like to have access to the columns of the matrix.


Try using tblread instead of dlmread !

You will be able to read files with this structure:

Latitude » Longitude » City
42.3584  » -71.0598  » Boston
40.4167  » -3.7003   » Madrid
41.8955  » 12.4823   » Rome

And you can even use delimiters to find the correct positions!

Source for research and understanding of the mentioned command!

Scroll to Top