how to comment part of the title?
조회 수: 5 (최근 30일)
이전 댓글 표시
How can i comment out the part below in brackets? title('Read-range at [name of point] of the antenna')
i want to eventually have a variable there and each time create my plot, to give it a correct title. For example, "Read-range at point A of the antenna", "Read-range at point B of the antenna", C, D, and so on.
Thanks.
Lala~
댓글 수: 0
답변 (3개)
Azzi Abdelmalek
2013년 2월 26일
편집: Azzi Abdelmalek
2013년 2월 26일
str='A'
title(sprintf('Read-range at %s of the antenna',str))
댓글 수: 0
the cyclist
2013년 2월 26일
I do that like this
>> stringVariable = 'truly';
>> title(['This title is going to be ',stringVariable,' awesome'])
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Design, Analysis, Benchmarking, and Verification에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!