How can I assign information to my array file?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Serhat Sayim
le 9 Mai 2021
Modifié(e) : Turlough Hughes
le 9 Mai 2021
I have a 1x720 size data file containing the numbers I have calculated. You can see it in attachments. I set my threshold of 0.4 for this data. I would like to mark those below 0.4 as "wheeze" and those greater than 0.4 as "non-wheeze". Can you help me to do this? Thank you.
0 commentaires
Réponse acceptée
Turlough Hughes
le 9 Mai 2021
Modifié(e) : Turlough Hughes
le 9 Mai 2021
You could make a table as follows:
w = strings(size(mci));
w(mci<0.4) = "wheeze";
w(mci>=0.4) = "non-wheeze";
T = table(mci.',w.','VariableNames',{'mci','wheeze'})
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Other Formats 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!