Apostrophes in Cell
Mostrar comentarios más antiguos
How do I save a string to a cell that is in apostrophes?
ie. 'filename', not filename
Respuestas (2)
Jan
el 6 de Abr. de 2011
If '''filename''' looks too confusing, e.g. when posting code in a forum:
quote = char(39);
abc = {[quote, 'filename', quote]}
Matt Fig
el 6 de Abr. de 2011
0 votos
Use a double apostrophe everywhere you want one.
1 comentario
Walter Roberson
el 6 de Abr. de 2011
Right. So in order to use that string itself, you would use
abc = '''filename''';
Categorías
Más información sobre Data Type Conversion 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!