Using a statement to identify a specific matrix with a given range of values.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am hoping to get some help with a question concerning using a value range in MatLab. I am trying to write a statement where if the value of a variable falls within a given range, than a specific table of values is selected.
I am using the following code to round values for atmosT and RH:
roud_atmosT = round(atmosT);
roud_RH = round(RH);
and have the following selection of matrices: x15C_ab, x17_5C_ab, x20C_ab, x22_5C_ab, x23C_ab
so for example, "if the value for roud_atmosT is 15 to 17, than ambient_T = 'x15C_ab'
Let me know if you need any more info or further explanation/definition. Thanks for any help you can give.
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
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!