From: Catalin Eberhardt on 7 Apr 2010 15:58 Hi everyone, I have a bunch of data files produced by a script that acquires data in an experiment. A sample data file is located here: http://www.2shared.com/file/12478975/d6307cec/data.html ; the files weren't originally created as CSV files, I just renamed this sample as data.CSV. I would like to be able to access the numerical data in each file easily, and the first step is probably to extract data from each file in the form of a matrix. Unfortunately, the script created rather sloppy data files, as you can see (lots of text descriptions, etc), so a bit of "filtering" has to be done before arriving at a "clean" matrix (i.e. only numerical data, with maybe a header for each column). Can anyone suggest what would be an easy way of doing this? I guess in a script, the function 'dlmread' would have to be used, and to test how it would work for a single file, I used the Import Data wizard; the wizard automatically (and correctly) detects 5 lines of text header, but then proceeds to create a Data variable (matrix) that only contains 1 row. Any help would be appreciated, many thanks in advance.
|
Pages: 1 Prev: data acquisition using PCI 6221 Next: Slider not moving, any suggestions? |