in between two points

2 次查看(过去 30 天)
melik matas
melik matas 2020-5-2
How can I write that there are ten '*'s between two points? How can I do this? plot
  2 个评论
darova
darova 2020-5-2
you mean string?
s = ['a' repmat('*',1,10) 'b'];
Or you want to plot something?
Olawale Ikuyajolu
write as a title or what?

请先登录,再进行评论。

回答(1 个)

Olawale Ikuyajolu
string = 'a{\ast \ast \ast \ast}b'
  4 个评论
Olawale Ikuyajolu
Should be like this
'a^{\ast\ast\ast\ast}b'
for text title('') in plot and text on a plot
Walter Roberson
Walter Roberson 2020-5-2
st = ['a^{', repmat('\ast', 1, 10), '}b']

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by