How can I create a variable length string in MATLAB ?

11 visualizaciones (últimos 30 días)
Caped Crusader
Caped Crusader el 13 de Ag. de 2012
I want to create a string whose length and elements can be modified later i.e. I can change the elements of string and add new elements as I wish. How can I do that?

Respuesta aceptada

TAB
TAB el 13 de Ag. de 2012
% Create String
MyStr = 'abcd';
% Change later
MyStr = 'lmnopqrst';

Más respuestas (0)

Categorías

Más información sobre Characters and Strings 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