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 Center および File ExchangeInterpolation についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by