Wild cards for variable names
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Meli
il 31 Ott 2013
Modificato: Azzi Abdelmalek
il 31 Ott 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 Commenti
Risposta accettata
Azzi Abdelmalek
il 31 Ott 2013
Modificato: Azzi Abdelmalek
il 31 Ott 2013
s=whos('HCE*')
out={s.name}
1 Commento
Azzi Abdelmalek
il 31 Ott 2013
Modificato: Azzi Abdelmalek
il 31 Ott 2013
[Meli commented]
Excellent!
Thanks!
Meli
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!