Wild cards for variable names
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Meli
le 31 Oct 2013
Modifié(e) : Azzi Abdelmalek
le 31 Oct 2013
Hi,
i have a series of vectors whose name start with HCE. For example: HCEcool, HCElighting, HCEth.
I would like to add them up without going through the trouble of writing them all out. Is there a wild card that would allow me to do this?
Something like HCE* for example?
Thanks!
Meli
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 31 Oct 2013
Modifié(e) : Azzi Abdelmalek
le 31 Oct 2013
s=whos('HCE*')
out={s.name}
1 commentaire
Azzi Abdelmalek
le 31 Oct 2013
Modifié(e) : Azzi Abdelmalek
le 31 Oct 2013
[Meli commented]
Excellent!
Thanks!
Meli
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB 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!