filename — Name of file to read character vector | string scalar
Name of the file to read, specified as a character vector or string scalar.
fileread leverages automatic character set detection to determine
the file encoding.
Example: 'myFile.dat'
Data Types: char | string
Extended Capabilities
C/C++ Code Generation Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
If the function fileread reads the entire file, then all the
data must fit in the largest array that is available for code generation.