필터 지우기
필터 지우기

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 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