MATLAB: How to plot the data saved in a matrix

plot matrix rows

I have a 104×24 matrix with data I want to plot in a single figure. However, I don't want to plot all the information of the matrix. I have saved the rows I will not use in a variable (row_no_used = [28 37 39 41 43 45 47 50 52 54 56 58 60];). How can I plot the rest of the rows with a simple script? To clarify a little bit more my point, I would like to plot the following rows: 1:27, 36, 38, 40, 42, 44, 46, 48, 49, 51, 53, 55, 57, 59, 61:96.
Many thanks for your help,

Best Answer

A = rand(104,24) ;
row_no_used = [28 37 39 41 43 45 47 50 52 54 56 58 60];
[nx,ny] = size(A) ;
rows = 1:nx ;
row_used = setdiff(rows,row_no_used) ;
iwant = A(row_used,:) ;
plot(iwant)