How can I create a variable length string in MATLAB ?

16 Ansichten (letzte 30 Tage)
Caped Crusader
Caped Crusader am 13 Aug. 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?

Akzeptierte Antwort

TAB
TAB am 13 Aug. 2012
% Create String
MyStr = 'abcd';
% Change later
MyStr = 'lmnopqrst';

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by