how to create a string variable with specified color?
조회 수: 4 (최근 30일)
이전 댓글 표시
채택된 답변
DGM
2022년 4월 20일
A string or char doesn't have a color.
If you're talking about putting a text object in a figure, you could do that.
mywords = "i'm not here";
ht = text(0,0,mywords,'color','b')
xlim([-1 1])
ylim([-1 1])
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!