How do I delete specific elements from a matrix?

1 view (last 30 days)
How do I delete numbers >10 or <-10 from the matrix?

Accepted Answer

Paolo
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)

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!