how can i type a letter in single quotes?

fprintf('''Q''')
>>> it gives 'Q' right but i want it the prompt in next line so i type
fprintf('''O''/n');
>>> 'O'/n>>
how to get prompt in next line

 Réponse acceptée

Walter Roberson
Walter Roberson le 5 Juin 2015
Include the \n in the format descriptor.
fprintf('''Q''\n')

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by