Filter löschen
Filter löschen

Wild cards for variable names

10 Ansichten (letzte 30 Tage)
Meli
Meli am 31 Okt. 2013
Bearbeitet: Azzi Abdelmalek am 31 Okt. 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

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 31 Okt. 2013
Bearbeitet: Azzi Abdelmalek am 31 Okt. 2013
s=whos('HCE*')
out={s.name}
  1 Kommentar
Azzi Abdelmalek
Azzi Abdelmalek am 31 Okt. 2013
Bearbeitet: Azzi Abdelmalek am 31 Okt. 2013
[Meli commented]
Excellent!
Thanks!
Meli

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by