Borrar filtros
Borrar filtros

Simple way to wrap quotes around input

3 visualizaciones (últimos 30 días)
Marco Bakker
Marco Bakker el 21 de Oct. de 2016
Respondida: Thorsten el 21 de Oct. de 2016
How to wrap quotes ('...') around a user input string?

Respuesta aceptada

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

Más respuestas (1)

Thorsten
Thorsten el 21 de Oct. de 2016
str = ['''' str ''''];

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by