Azzera filtri
Azzera filtri

Simple way to wrap quotes around input

3 visualizzazioni (ultimi 30 giorni)
How to wrap quotes ('...') around a user input string?

Risposta accettata

Image Analyst
Image Analyst il 21 Ott 2016
One way:
str = sprintf('''%s''', usersString)

Più risposte (1)

Thorsten
Thorsten il 21 Ott 2016
str = ['''' str ''''];

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by