How can I create a variable length string in MATLAB ?

14 次查看(过去 30 天)
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?

采纳的回答

TAB
TAB 2012-8-13
% Create String
MyStr = 'abcd';
% Change later
MyStr = 'lmnopqrst';

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by