フィルターのクリア

Help with "Kolgomorov Complexity"

1 回表示 (過去 30 日間)
Kevin Lai
Kevin Lai 2015 年 11 月 25 日
回答済み: Walter Roberson 2015 年 11 月 25 日
I was tasked with the following and can't really solve it:
1) Design a code that can generate the string: 'abcabcabcabcabcabcabcabcabcabcabcabcd'. --> I know there is a repmat function but how can I use it for char strings? Also, would a for loop help in this case, especially with the additional "letter d" at the end?
2) Design a second code that is even shorter than the first code.

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 11 月 25 日
Hint:
repmat('pqrst', 1, 5)

カテゴリ

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