How to append underscore to name of image?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi
How to append underscore to the variable name or name of image?Eg:a_20.how to a concatenate 'a' and '_'='a_'
댓글 수: 0
채택된 답변
Iain
2013년 6월 3일
You can concatenate strings:
['hello' ' ' 'world' '_' 'a' '.jpg']
['name' '_' num2str(number)]
etc.
댓글 수: 0
추가 답변 (1개)
Matt J
2013년 6월 3일
편집: Matt J
2013년 6월 3일
You don't enumerate different images this way, if that's what you mean. You use cell arrays or multi-dimensional indexing
a(:,:,20) = theImage;
or
a{20} = theImage;
If that's not what you mean, please clarify. It seems like it should be very easy to modify the name of the variable, just by assigning to the new name and clearing the old one if needed
a_=a; clear a
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!