How can I create a variable length string in MATLAB ?

15 ビュー (過去 30 日間)
Caped Crusader
Caped Crusader 2012 年 8 月 13 日
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 Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by