How can I write that there are ten '*'s between two points? How can I do this? plot

댓글 수: 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?
Should be like this
'a^{\ast\ast\ast\ast}b'
for text title('') in plot and text on a plot
st = ['a^{', repmat('\ast', 1, 10), '}b']

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Characters 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