MATLAB: How to create a cell array from rows of an existing cell array

cell arrayrows

I have a cell array named "list" of 900 rows and 9 columns, each element of the cell array contains a string. i want to extract few rows of "list" to create a new cell array. The rows that i need are stored in a vector named "a".

Best Answer

new_list = list(a,:);