How to delete multiple rows of particular values?
5 次查看(过去 30 天)
显示 更早的评论
I have a matrix of 56298 x 15. Each column has a different header such as;
'UTC, startSeconds, duration...'
I am wanting to remove entire rows (for all columns) if the 'startSeconds' is equal to or lower than 2.37.
I've tried the 'find' function but I'm concerned that will only delete the value of the cell
2 个评论
采纳的回答
Mohammad Sami
2020-5-20
Assuming that the variable is a matrix and the second column is startSeconds
rowstokeep = data(:,2) > 2.37;
data = data(rowstokeep,:);
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!