I recommend trying the 'Import Data' button on the Home tab in the Matlab toolstrip. After selecting your .txt file in the tool, you may interactively crop the data you need and save into a variable in your workspace.
There are multiple tools and options to import the data you mentioned - for an overview you may read this documentation page:
Hope it helps!