How to select cells in a table with values in a given range?

2 vues (au cours des 30 derniers jours)
Elissa
Elissa le 29 Mar 2018
Commenté : Elissa le 29 Mar 2018
E.g. I want to select every cell from a column whose content is a number in the range 1:2:17.
  3 commentaires
Bob Thompson
Bob Thompson le 29 Mar 2018
Are you looking to do this selection in matlab, or in excel directly?
Elissa
Elissa le 29 Mar 2018
Shounak Shastri - yes I want to select the cells that contain a value in the range 1 to 17 in steps of 2.
Bob Noob - I want to do this in matlab on a matlab table.

Connectez-vous pour commenter.

Réponse acceptée

Peter Perkins
Peter Perkins le 29 Mar 2018
Hard to say what you are really asking, but in MATLAB ...
t = readtable(example.xls')
t2 = t(ismember(t.condition,1:2:17),:)

Plus de réponses (0)

Catégories

En savoir plus sur Logical 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