Borrar filtros
Borrar filtros

How to use special character ' in a string?

61 visualizaciones (últimos 30 días)
Matlab Help Seeker
Matlab Help Seeker el 24 de Jun. de 2011
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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 24 de Jun. de 2011
case ''''
or
case char(39)
  2 comentarios
Matlab Help Seeker
Matlab Help Seeker el 24 de Jun. de 2011
Thank you.
Jan
Jan el 24 de Jun. de 2011
CHAR(39) looks less confusing, especially inside posts in the forum and if you need more than one quote charcter.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by