Effacer les filtres
Effacer les filtres

find a cell that corresponds to a range of values

4 vues (au cours des 30 derniers jours)
Lama Hamadeh
Lama Hamadeh le 17 Juil 2022
Réponse apportée : dpb le 17 Juil 2022
Hi all,
If a I have a column of four cells where each cell contains a range of values, as shown below.
If I have a list that has five elements: . I want to find the cell that corresponds to the range of values between each two consecutive elements in this list. For exmaple, what is the cell that is smaller than the first element and larger than the second? And then do the same for the second pair of elements.

Réponses (1)

dpb le 17 Juil 2022
>> [~,~,idx]=histcounts(z,R)
idx =
In future, please attach data as text (use "code" button or Ctrl-E and it'll show up as code and copyable/executable. Nothing can do with images except look at them and then retype the data in manually.


En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by