Wild cards for variable names

10 次查看(过去 30 天)
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

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-10-31
编辑:Azzi Abdelmalek 2013-10-31
s=whos('HCE*')
out={s.name}

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by