How do I delete specific elements from a matrix?

조회 수: 1 (최근 30일)
jakobjakob
jakobjakob 2018년 6월 9일
편집: Stephen23 2018년 6월 10일
How do I delete numbers >10 or <-10 from the matrix?

채택된 답변

Paolo
Paolo 2018년 6월 9일
Tijdgoed((Tijdgoed > 10 | Tijdgoed <-10)) = [];
You can confirm by using:
find(Tijdgoed>10)
find(Tijdgoed<-10)
which return empty vectors.
  댓글 수: 1
jakobjakob
jakobjakob 2018년 6월 9일
편집: Stephen23 2018년 6월 10일
Thanks, it works perfectly!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by