フィルターのクリア

How do I set a starting point in a find function

12 ビュー (過去 30 日間)
Benedikt Friedl
Benedikt Friedl 2021 年 11 月 12 日
回答済み: Jon 2021 年 11 月 12 日
Hi,
I want to find the first value in a array after a specific rownumber.
Eg:
A = [3; 6; 2; 3; 1; 7];
[a b] = find(A >= 4,1,'first');
here the function will find a=2, b=1, but I want to start the find function at this specific point.
Is it possible to set a starting point for the find-funktion?
Greetings
Benni

採用された回答

Jon
Jon 2021 年 11 月 12 日
If you know you wanted to start the search at a known row and column index you could use
iStart = 2
jStart = 3
[a,b] = find(A(iStart:end,jStart:end)>=4,1,'first')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by