find first and last index below threshold in a vector

2 ビュー (過去 30 日間)
Guilherme Theis
Guilherme Theis 2020 年 6 月 29 日
回答済み: dpb 2020 年 6 月 29 日
Hello,
I've a vector of s-parameters results that contains >1000 elements. I want to mesure the bandwidth of the impedance matching of my circuit. My vector has a bunch of negative values and I want to see the intervals where those values are below -10.
I want to see the first index below -10 and the last one of an given interval. Meaning that if for example I have -10 between the points 130 and 200 I want to have a results to be FirstIndex = 130, LastIndex = 200.
How can I accomplish this in R2020a?

採用された回答

dpb
dpb 2020 年 6 月 29 日
Use find

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAI for Wireless についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by