How can I create a variable length string in MATLAB ?

조회 수: 11 (최근 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 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