This question is closed. Reopen it to edit or answer.
How to eliminate the rows of data ?
1 view (last 30 days)
Joakim Magnusson on 12 Aug 2014
Is your data i a matrix? I'm not sure what you want to remove, but for example if you want to remove the first 5 rows, i think you could do like this:
yourMatrix(1:5, :) = ;
But i guess you want to recognize some kind of pattern and remove the rows with the specific pattern?
Ben11 on 12 Aug 2014
If your data is stored in a cell array you could use the following:
% Identify the rows (I) in which there are empty elements
[I,J] = ind2sub(size(YourArray),find(cellfun(@(x) isempty(x),YourArray)))
% Find the unique entries
RowsToDelete = unique(I)
% Delete them
YourArray(RowsToDelete,:) = ;