Cookbook: Difference between revisions

398 bytes added ,  15 September 2015
(array slice tips)
Line 157: Line 157:
Another option is to use the function <code>csvread</code>, however this function can't handle non-numerical data.
Another option is to use the function <code>csvread</code>, however this function can't handle non-numerical data.


The probably best option is to use the function csv2cell() from the io package.  This function can read mixed-type (numerical and text) .csv files, allows to specify other field separators than a comma and other text protection characters (default: " double quote) and can skip headerlines.  If you have the io package installed and loaded, type "help csv2cell" at the Octave prompt for more info.


===Load XML files===
===Load XML files===
99

edits