Filter löschen
Filter löschen

how can i type a letter in single quotes?

1 Ansicht (letzte 30 Tage)
hanish h
hanish h am 5 Jun. 2015
Kommentiert: hanish h am 5 Jun. 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

Akzeptierte Antwort

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

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by