in between two points

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
Olawale Ikuyajolu 2020 年 5 月 2 日
write as a title or what?

サインインしてコメントする。

回答 (1 件)

Olawale Ikuyajolu
Olawale Ikuyajolu 2020 年 5 月 2 日

0 投票

string = 'a{\ast \ast \ast \ast}b'

4 件のコメント

Image Analyst
Image Analyst 2020 年 5 月 2 日
???
>> string = 'a{\ast \ast \ast \ast}b'
string =
'a{\ast \ast \ast \ast}b'
darova
darova 2020 年 5 月 2 日
the answer is unclear. Can you explain more?
Olawale Ikuyajolu
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
Walter Roberson 2020 年 5 月 2 日
st = ['a^{', repmat('\ast', 1, 10), '}b']

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

質問済み:

2020 年 5 月 2 日

編集済み:

2020 年 5 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by