in between two points
显示 更早的评论
How can I write that there are ten '*'s between two points? How can I do this? plot
2 个评论
darova
2020-5-2
you mean string?
s = ['a' repmat('*',1,10) 'b'];
Or you want to plot something?
Olawale Ikuyajolu
2020-5-2
write as a title or what?
回答(1 个)
Olawale Ikuyajolu
2020-5-2
string = 'a{\ast \ast \ast \ast}b'
4 个评论
Image Analyst
2020-5-2
???
>> string = 'a{\ast \ast \ast \ast}b'
string =
'a{\ast \ast \ast \ast}b'
darova
2020-5-2
the answer is unclear. Can you explain more?
Olawale Ikuyajolu
2020-5-2
Should be like this
'a^{\ast\ast\ast\ast}b'
for text title('') in plot and text on a plot

Walter Roberson
2020-5-2
st = ['a^{', repmat('\ast', 1, 10), '}b']
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!