General MATLAB code used by the lab.
- Manipulate CSV files:
- readCsv.m: Reads CSV files into a cell array (1xnColumns) of structures with fields header (first cell in column) and col (cell array of other cells in column).
- mergeStructures.m: Merges structures of the form readCsv outputs. Straightforward way to merge CSV files.
- writeCsv.m: Saves CSV files based on structure of the form readCsv outputs.
- correctCsv.m: Removes quotation marks from CSV files.
- Manipulate strings:
- cellstrfind.m: Determines if any strings within cell array are within another cell array of strings.
- cleanPath.m: Removes extraneous forward slashes from paths.
- stringReplace.m: Performs string replacements throughout cell arrays, structures, etc.
- Miscellaneous:
- hourToc.m: Presents results from tic/toc in more readable format.
- isNumberOrNan.m: Determines if string input is a number (or 'NaN') or not.
- makeDirectoryTree.m: Makes every folder in path.
- python.m: Modified version of Matlab's perl.m to run Python commands.
- removeEmptyCells.m: Cleans cell arrays and structures of the form readCsv outputs of empty cells.
- smartError.m: Reports try/catch errors in a readable format.