in between two points

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

2 comentarios

darova
darova el 2 de Mayo de 2020
you mean string?
s = ['a' repmat('*',1,10) 'b'];
Or you want to plot something?
Olawale Ikuyajolu
Olawale Ikuyajolu el 2 de Mayo de 2020
write as a title or what?

Iniciar sesión para comentar.

Respuestas (1)

Olawale Ikuyajolu
Olawale Ikuyajolu el 2 de Mayo de 2020

0 votos

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

4 comentarios

Image Analyst
Image Analyst el 2 de Mayo de 2020
???
>> string = 'a{\ast \ast \ast \ast}b'
string =
'a{\ast \ast \ast \ast}b'
darova
darova el 2 de Mayo de 2020
the answer is unclear. Can you explain more?
Olawale Ikuyajolu
Olawale Ikuyajolu el 2 de Mayo de 2020
Should be like this
'a^{\ast\ast\ast\ast}b'
for text title('') in plot and text on a plot
Walter Roberson
Walter Roberson el 2 de Mayo de 2020
st = ['a^{', repmat('\ast', 1, 10), '}b']

Iniciar sesión para comentar.

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Preguntada:

el 2 de Mayo de 2020

Editada:

el 9 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by