Opening the book…
By the end of this chapter, you should be able to:
- Explain why file input/output is important in engineering and data analysis.
- Read numeric data from a text or data file using load.
- Write numeric arrays to a text or data file using save with the -ascii option.
- Append new numeric data to an existing file.
- Describe the limitations of load and save for file input/output.
- Open and close files safely using fopen and fclose.
- Read mixed data using textscan.
- Read a file one line at a time using fgetl.
- Write formatted output to a file using fprintf.
- Read and write spreadsheet data using readcell, writecell, readtable, and writetable.
- Choose an appropriate file I/O approach for different types of data.
This page titled 9.1: Learning Objectives was last modified on Tue, 30 Jun 2026 02:12:02 GMT and is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by Zara Noroozi.
The book could not be loaded just now.