The use of ' into a text

2 ビュー (過去 30 日間)
Alberto
Alberto 2014 年 2 月 3 日
コメント済み: Alberto 2014 年 2 月 3 日
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!!!

採用された回答

Sean de Wolski
Sean de Wolski 2014 年 2 月 3 日
'c'''
Use two '' to indicate one inside of a string.
  1 件のコメント
Alberto
Alberto 2014 年 2 月 3 日
wow... thank you very much I have passed a time thinking about this. THANKS¡¡

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by