how to create string includes '
Ältere Kommentare anzeigen
i have string ['_ ,,,77 - -'''''"''"i''-_G8" ']
but it is illegal how to create it
Akzeptierte Antwort
Weitere Antworten (2)
michael scheinfeild
am 30 Apr. 2015
0 Stimmen
1 Kommentar
' 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
am 30 Apr. 2015
0 Stimmen
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!