Character Array initialization and creation

Respuestas (1)

James Tursa
James Tursa el 10 de Jul. de 2015
The straightforward answer is simply to assign a string to a variable name. E.g.,
mystring = 'This is a string'; % Initialize mystring
If you want to initialize with a user defined string, then e.g.,
mystring = input('Input the initialization string: ','s');
If you want a more detailed answer, please give more details about what you really want.

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 10 de Jul. de 2015

Respondida:

el 10 de Jul. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by