Filter löschen
Filter löschen

Simple way to wrap quotes around input

3 Ansichten (letzte 30 Tage)
Marco Bakker
Marco Bakker am 21 Okt. 2016
Beantwortet: Thorsten am 21 Okt. 2016
How to wrap quotes ('...') around a user input string?

Akzeptierte Antwort

Image Analyst
Image Analyst am 21 Okt. 2016
One way:
str = sprintf('''%s''', usersString)

Weitere Antworten (1)

Thorsten
Thorsten am 21 Okt. 2016
str = ['''' str ''''];

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by