Effacer les filtres
Effacer les filtres

how can i type a letter in single quotes?

1 vue (au cours des 30 derniers jours)
hanish h
hanish h le 5 Juin 2015
Commenté : hanish h le 5 Juin 2015
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')
  1 commentaire
hanish h
hanish h le 5 Juin 2015
haha cheers mate i know its a dumb question

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by