Info

This question is closed. Reopen it to edit or answer.

How do I only read in part of a line from a file?

1 view (last 30 days)
Andrew Geisel
Andrew Geisel on 24 Apr 2015
Closed: MATLAB Answer Bot on 20 Aug 2021
I want to read in only the number at the end of a line in a text file I'm reading in using textscan.
The line goes basically like this:
Average length of pipes (in): 9
How would I get only the value of 9?

Answers (0)

Community Treasure Hunt

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

Start Hunting!