how to create string includes '
Mostrar comentarios más antiguos
i have string ['_ ,,,77 - -'''''"''"i''-_G8" ']
but it is illegal how to create it
Respuesta aceptada
Más respuestas (2)
michael scheinfeild
el 30 de Abr. de 2015
0 votos
1 comentario
' is used in Matlab to indicate the start and end of a string, but the ' are not part of the string. To get the ' as part of the string, you have to type them twice (enclosed by ' to denote a Matlab string):
b='''abc"'''
michael scheinfeild
el 30 de Abr. de 2015
0 votos
Categorías
Más información sobre Characters and Strings en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!