Not Generating Accurate Elements from Inequality

조회 수: 1 (최근 30일)
Jonathan Pinko
Jonathan Pinko 2020년 3월 24일
댓글: Jonathan Pinko 2020년 3월 25일
I have a vector Fezq, with size 116x1. I would like to remove all the elements of this vector that have an absolute value greater than .025, so I used the line of code shown below.
Feyqlimit = Fezq(Fezq <= abs(.025))
Yet after I applied this, I generated this as the solution:
Feyqlimit =
-0.0203
0.0194
-0.6905
-0.2784
Does anyone have any ideas as to why my inequality isn't functioning correctly?
Thanks,
Jonathan

채택된 답변

Sindar
Sindar 2020년 3월 25일
Feyqlimit = Fezq(abs(Fezq) <= .025)
  댓글 수: 1
Jonathan Pinko
Jonathan Pinko 2020년 3월 25일
Ah, woops, this works perfectly. Thanks!
Jonathan

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by