Examples of fopen function in MATLAB

0

Open file, or obtain information about open files

All Contributions

Open a file and pass the file identifier to the fgetl function to read data.

Open the file, tsunamis.txt, and obtain the file identifier.

%Open the file, tsunamis.txt, and obtain the file identifier.
fileID = fopen('tsunamis.txt');
%Pass the fileID to the fgetl function to read one line from the file.
tline = fgetl(fileID);

total contributions (1)

This topic belongs to these lists

need a help?


find thousands of online teachers now

New to examplegeek.com?

Join us