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
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2013년 10월 31일
편집: Azzi Abdelmalek
2013년 10월 31일
s=whos('HCE*')
out={s.name}
댓글 수: 1
Azzi Abdelmalek
2013년 10월 31일
편집: Azzi Abdelmalek
2013년 10월 31일
[Meli commented]
Excellent!
Thanks!
Meli
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!