Deleting multiple rows based on a specific condition
1 view (last 30 days)
Show older comments
Stefania Avvedimento on 28 Feb 2021
Commented: KALYAN ACHARJYA on 28 Feb 2021
I am working on a water network. I got a big matrix 381x12527 (time vs node's quality concentration) even for times that I am not interest in. So I want to delete the matrix rows for which the difference between two consecutive rows is not equal to 3600 (see yellow rows in Figure).
I would appreciate if anyone could help me, thanks!
Edited: KALYAN ACHARJYA on 28 Feb 2021
Lets say data1 is the column time data
% +1 for compensate with next
% Do modify accordingly
Once get the rows numbers, which to be deleted
It gives the all those numbers, which are non divisible by 3600
More Answers (0)
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!