You could use setdiff() to do the indexing:
data = rand(10,20);
plot(data(:,setdiff(1:20,5:7)));
Please accept the answer that best solves your problem.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!