% some data
data = [0 10]+(1:10).'
% whether to get each row:
rows_to_get = [false; false; true; true; false; false; false; true; true; false]
% final result:
result = data(rows_to_get,:)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!