in between two points

5 ビュー (過去 30 日間)
melik matas
melik matas 2020 年 5 月 2 日
編集済み: melik matas 2020 年 5 月 9 日
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 日
string = 'a{\ast \ast \ast \ast}b'
  4 件のコメント
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']

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

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by