identify numbers greater than a specific number

3 vues (au cours des 30 derniers jours)
Tino
Tino le 20 Juin 2019
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

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 20 Juin 2019
Modifié(e) : KALYAN ACHARJYA le 20 Juin 2019
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

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by