Goal for Week 4: Reading and writing numbers to files
Summary of new tools and commands.
- load import columns of numbers from an text file or
variables from a MATLAB file.
- save Save variable values to a MATLAB file.
- sum add numbers in a vector or table.
- find return the indexes of values in an array for which
a logical test is true.
- isnan returns true if the
variable in a list is "Not-a-Number" or "NaN"; otherwise false.
- length returns the number of elements in a vector.
- size returns the number of values in each dimension of a
variable.
- csvread reads a file containing numbers separated by commas
(an Excel csv file).
- dlmread reads a file containing numbers separated by some
delimiter character.
- csvwrite write a matrix to a file with comma delimiters.
- dlmwrite write a matrix with the indicated delimiter.
email: J. Klinck