Please read the available MATLAB documentation, e.g. " Plot Data Grouped by Category" and " Box plot". In general, searching the Internet (e.g. Google, DuckDuckGo, Yahoo!, etc) for phrases like 'matlab boxplot' will give you the documentation needed.
In this case, make a matrix with your data, a vector with the grouping (category) info the same length, and then simply execute boxplot(datamatrix,groupingvector) as the documentation says.