how to comment part of the title?
显示 更早的评论
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~
回答(3 个)
Azzi Abdelmalek
2013-2-26
编辑:Azzi Abdelmalek
2013-2-26
str='A'
title(sprintf('Read-range at %s of the antenna',str))
the cyclist
2013-2-26
I do that like this
>> stringVariable = 'truly';
>> title(['This title is going to be ',stringVariable,' awesome'])
类别
在 帮助中心 和 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!