ME - 447 Computer Control of Machines & Processes - Matlab Scripts and Example Data Files
Matlab Scripts:
Importing a .csv data file into Matlab
mfcsvread.m - An m-file for reading in a multi-format comma separated value (.csv) text file with the first row delimiting the data field name. Courtesy of Matlab Central
The CSV file should look like:
comma, separated, text, ...
1,2,3,4,5,...
6,7,8,9,10,...
etc...example.m - An example m-file that uses mfcsvread to import a .csv file with the first row containing column headers.
data1.csv - Example .csv file that example.m uses
test1.csv - Second example .csv file that example.m uses
All the above files must be downloaded into a common directory - then run the example.m script
Datasheets, Manuals and Tutorials (including Matlab) for Labs are available
on the Mechatronics Lab Resources page.
Last updated 01/24/2008 09:09 AM
© 2001-2008 University of Wisconsin - Madison : Mechatronics Lab