Wild cards for variable names

조회 수: 10 (최근 30일)
Meli
Meli 2013년 10월 31일
편집: Azzi Abdelmalek 2013년 10월 31일
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}
  댓글 수: 1
Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 31일
편집: Azzi Abdelmalek 2013년 10월 31일
[Meli commented]
Excellent!
Thanks!
Meli

댓글을 달려면 로그인하십시오.

추가 답변 (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