Working with CSV files in Matlab is a PITA. This utility class helps do that by providing the following functionality:
- Read CSV files with both numeric and string data
- Get a column by a numeric index or an Excel like index
- Get column title by a numeric index or an Excel like index
- Create variables in the workspace using a numeric index or an Excel like index
It also detects the data types by itself, so no conversions are necessary.
Disclaimer: This code was written as a helper class for another project, and was never meant to serve as a bullet proof general purpose utility, so use at your own risk.
TODO
- Tested with Matlab 2013 on a Mac.
- Doesn't support Windows environments (but should be easy to add if needed).
Feel free to contribute bug fixes and new features, or contact me if needed.