Hi Adam,
To read and extract data from text files in MATLAB, you have several options depending on the data present in the file:
- Use “readtable" for tabular data with mixed types. It allows for easy manipulation and accessing the data using the column names.
- You can use “readtimetable" for file which has tabular data where rows are associated with a time.
- If the file has for uniform numeric data use “readmatrix".
- If the file has for non-uniform data, where each cell can contain different data types “readcell" can be used.
- For plain text files use “readlines".
Please refer to the following documentation link for more information on importing text files:
