Hello, my problem is that I am trying to export to a .txt file dates into a stave to use with Lylipond... My problem is that Lylipond uses the character ' to indicate the level of the note, for example:
c' is a Do c'' is a Do one scale higher
So, when I want to export this information into a txt file, I have to write the following:
fprintf(fid,'%s\r\n','c'');
And matlab shows me an error for the two consecutives '' .... How can I use this character into a text declaration??. Have anyone an idea?. Thank you!!!

 Respuesta aceptada

Sean de Wolski
Sean de Wolski el 3 de Feb. de 2014

1 voto

'c'''
Use two '' to indicate one inside of a string.

1 comentario

Alberto
Alberto el 3 de Feb. de 2014
wow... thank you very much I have passed a time thinking about this. THANKS¡¡

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre App Building en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Feb. de 2014

Comentada:

el 3 de Feb. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by