Data Read and Write Considerations
To generate code for MATLAB® code that reads data files, you must identify your code generation target, file-type, and the supported read and write function. The following table presents the read and write functions and their usage notes:
MATLAB Function | File Type | How to Use |
---|---|---|
.coderdata file | Usage notes:
Example: Read Data from Multiple .coderdata Files at Run Time | |
MAT-file or ASCII file | Usage notes:
| |
MAT-file or ASCII file | Usage notes:
| |
| Usage notes:
Examples:
|
See Also
coder.read
| coder.write
| coder.load
| fread
| fwrite
| fscanf
| fprintf