Wild cards for variable names

10 visualizaciones (últimos 30 días)
Meli
Meli el 31 de Oct. de 2013
Editada: Azzi Abdelmalek el 31 de Oct. de 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

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 31 de Oct. de 2013
Editada: Azzi Abdelmalek el 31 de Oct. de 2013
s=whos('HCE*')
out={s.name}
  1 comentario
Azzi Abdelmalek
Azzi Abdelmalek el 31 de Oct. de 2013
Editada: Azzi Abdelmalek el 31 de Oct. de 2013
[Meli commented]
Excellent!
Thanks!
Meli

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by