How do I delete specific elements from a matrix?
1 view (last 30 days)
Show older comments
How do I delete numbers >10 or <-10 from the matrix?
0 Comments
Accepted Answer
Paolo
on 9 Jun 2018
Tijdgoed((Tijdgoed > 10 | Tijdgoed <-10)) = [];
You can confirm by using:
find(Tijdgoed>10)
find(Tijdgoed<-10)
which return empty vectors.
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB 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!