string problem
1 回表示 (過去 30 日間)
古いコメントを表示
hi, i have two strings
string1='a'
string2='b'
how do i get these into an array so i get:
total=['a', 'b']
I know the above is easy, but i want to be able to add n strings together into the total string array, n has to be defined by the user, in this case it is 2. (the strings can be anything i have just used the alphabet as an example)
I hope this makes sense!
2 件のコメント
Walter Roberson
2012 年 5 月 11 日
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency
Walter Roberson
2012 年 5 月 11 日
Duplicate is at http://www.mathworks.com/matlabcentral/answers/38113-plot-help
回答 (1 件)
the cyclist
2012 年 5 月 11 日
Can you just use cell arrays?
total = {'a','b'}
Here's an overview:
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!