Find table variable names with multiple conditions

15 vues (au cours des 30 derniers jours)
Luca D'Angelo
Luca D'Angelo le 17 Juin 2021
Commenté : Luca D'Angelo le 18 Juin 2021
Hello,I’m developing an app (with app designer) where the user has to upload a data file (xlsx). The app has to read the variable name and to look for variable temperature. unfortunately, the user not always titled that variable as “Temperature”but sometimes as “T” or “Temp”...and the app shouldn’t confuse this variable with another one that is the temperature inside the instrument (“T_int” or “Temp_int”).Thus, I wanted find the column index where there is the Temperature. I thought something like:
Tind=find(Data.Properties.VariableNames==“T”) find(contains(Data.Properties.VariableNames,”Temp”)) && ...avoid T_int. Anyone can help me?
  1 commentaire
Luca D'Angelo
Luca D'Angelo le 18 Juin 2021
Solved. Not in an elegant way but done.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Tables dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by