Effacer les filtres
Effacer les filtres

Simple way to wrap quotes around input

3 vues (au cours des 30 derniers jours)
Marco Bakker
Marco Bakker le 21 Oct 2016
How to wrap quotes ('...') around a user input string?

Réponse acceptée

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

Plus de réponses (1)

Thorsten
Thorsten le 21 Oct 2016
str = ['''' str ''''];

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by