Data for MATLABs
MATLAB data handling covers importing data from files such as CSV and Excel, and cleaning it for analysis. Tables and the readtable function hold mixed type columns, while functions like rmmissing, fillmissing and normalize deal with gaps and scaling, turning raw measurements into data ready for plotting or modelling.
Stage: Data and Visualisation · Part of the MATLAB roadmap · Last reviewed 19 November 2026
What to learn in Data
- Import a CSV or spreadsheet into a table using readtable
- Select rows and columns of a table by variable name and condition
- Detect and handle missing values with ismissing and fillmissing
- Summarise data with mean, median, std and groupsummary
- Save results to a MAT file or write them back to a spreadsheet
Data interview questions
What is a MATLAB table and how does it differ from a matrix?
A table stores column-oriented data where each variable can have a different type, such as numbers, text and dates, and columns have names. A matrix holds one numeric type with no names. Tables suit imported datasets with labelled columns.
How do you handle missing values in MATLAB?
Find them with ismissing or isnan, then either remove rows using rmmissing or fill them using fillmissing with a method such as linear interpolation or previous value. The right choice depends on why the data is missing and how the analysis uses it.
Where Data fits in the MATLAB roadmap
Data belongs to the Data and Visualisation stage (beginner level). Analyse and plot.
Other units in this stage
Back to the full MATLAB roadmap