
fscanf - MathWorks
A = fscanf(fileID,formatSpec) reads data from an open text file into column vector A and interprets values in the file according to the format specified by formatSpec. The fscanf function reapplies the format throughout the entire file and positions the file pointer at the end-of-file marker.
Import Text Files - MathWorks
MATLAB ® can read and write numeric and nonnumeric data from delimited and formatted text files, including .csv and .txt files. Text files often contain a mix of numeric and text data as well as variable and row names.
fileread - MathWorks
Read a file and search it for text of interest. First, read the file fileread.m into a character vector.
importdata - MathWorks
Data from the file, returned as a matrix, multidimensional array, or scalar structure array, depending on the characteristics of the file. Based on the file format of the input file, importdata calls a helper function to read the data.
Text Files - MathWorks
Import Text Files MATLAB ® can read and write numeric and nonnumeric data from delimited and formatted text files, including .csv and .txt files. Read Text File Data Using Import Tool Preview tabular data from a text file or the clipboard and select data to import using the Import tool.
textread - MathWorks
textread is useful for reading text files with a known format. textread handles both fixed and free format files. textread matches and converts groups of characters from the input.
textscan - MathWorks
C = textscan(fileID,formatSpec) reads data from an open text file into a cell array, C. The text file is indicated by the file identifier, fileID. Use fopen to open the file and obtain the fileID value. When you finish reading from a file, close the file by calling fclose(fileID).
readlines - MathWorks
S = readlines(filename) creates an N-by-1 string array by reading an N-line file. example S = readlines( filename , Name,Value ) creates a string array from a file with additional options specified by one or more name-value pair arguments.
extractFileText - MathWorks
str = extractFileText(filename) reads the text data from a file as a string. example str = extractFileText( filename , Name,Value ) specifies additional options using one or more name-value pair arguments.
readmatrix - MathWorks
A = readmatrix(filename) creates an array by reading column-oriented data from a file. The readmatrix function performs automatic detection of import parameters for your file. readmatrix determines the file format from the file extension: