How to use special character ' in a string?
55 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
I want to use the special character '. I want that if an input is equal to character ', then a bit stream gets transmitted.
case(''')
temp_sec_info='00101';
Now, you can't use three times '''. There must be a special operator to use the character ' in a string. How would it be possible?
Thank you.
0 Commenti
Risposta accettata
Walter Roberson
il 24 Giu 2011
case ''''
or
case char(39)
2 Commenti
Jan
il 24 Giu 2011
CHAR(39) looks less confusing, especially inside posts in the forum and if you need more than one quote charcter.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Characters and Strings in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!