Chapter 9

Advanced File Input and Output


Key Terms

file input and output

file types

lower-level file I/O functions

open the file

close the file

file identifier

permission strings

end of the file

This chapter extends the input and output concepts that were introduced in Chapter 2. In that chapter, we saw how to read values entered by the user using the input function, and also the output functions disp and fprintf that display information in windows on the screen. For file input and output (file I/O), we used the load and save functions that can read from a data file into a matrix, and write from a matrix to a data file. ...

Get Matlab: A Practical Introduction to Programming and Problem Solving, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.