identify numbers greater than a specific number

3 ビュー (過去 30 日間)
Tino
Tino 2019 年 6 月 20 日
編集済み: KALYAN ACHARJYA 2019 年 6 月 20 日
Hello I have the following data T = { 3 5 6 7 8 9 2 6 9 10 2 12 13} I want to know the numbers that are greater than for instance 7 and their position on the array. Thank for your help in advance Tino

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 6 月 20 日
編集済み: KALYAN ACHARJYA 2019 年 6 月 20 日
T =[3 5 6 7 8 9 2 6 9 10 2 12 13];
idx=find(T>7) % Gives index position
num=T(idx) % Gives Numbers

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by