Wild cards for variable names
12 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Azzi Abdelmalek
on 31 Oct 2013
Edited: Azzi Abdelmalek
on 31 Oct 2013
s=whos('HCE*')
out={s.name}
1 Comment
Azzi Abdelmalek
on 31 Oct 2013
Edited: Azzi Abdelmalek
on 31 Oct 2013
[Meli commented]
Excellent!
Thanks!
Meli
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!