Get Numeric Values out of Text File

4 visualizaciones (últimos 30 días)
Logan Sharp
Logan Sharp el 29 de En. de 2021
Respondida: Alex Alex el 29 de En. de 2021
I have the .txt file above, which I am trying to extract numeric values from. For example, I would like to extract just the numeric value from line 2 to say time = 5723. Or extract the numeric value from line 4 to say layerheight = 0.2. I am having a lot of issues with data types, where I can only bring in lines as a string. Then, they come up as a cell array, which I cannot seem to get the numerical value out of. Any help would be greatly appreciated.

Respuestas (1)

Alex Alex
Alex Alex el 29 de En. de 2021
look here about "ZIP codes", maybe help https://www.mathworks.com/help/matlab/ref/extract.html

Categorías

Más información sobre Data Import and Export en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by