7/26/2017 1
Ba sic Skill of Ma c hine L e a rning with MAT L AB
Stanley Liang, PhD York University
Basic Data Pre pro c e ssing
MATLAB (matrix laboratory) is a multi‐paradigm numerical computing environment and fourth‐generation programming language. A proprietary programming language developed by MathWorks, MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages, including C, C++, C#, Java, Fortran and Python.
- Importing data to MATLAB
– Import external data
– readtable()
– Using logical indexing
– create a logical idx variable – use the idx variable to get the subset
– Creating categorical data
– for nominal data – creating dummy variable
– Grouping data – Merging data