Azzera filtri
Azzera filtri

how can i type a letter in single quotes?

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by