how to create string includes '
Afficher commentaires plus anciens
i have string ['_ ,,,77 - -'''''"''"i''-_G8" ']
but it is illegal how to create it
Réponse acceptée
Plus de réponses (2)
michael scheinfeild
le 30 Avr 2015
0 votes
1 commentaire
' 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
le 30 Avr 2015
0 votes
Catégories
En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!