how can i create a string buffer with n size

for example the string is aagttctactaac i want to split into aa,ag,gt,tt,tc,ct,ta etc

回答 (1 件)

KSSV
KSSV 2017 年 5 月 17 日

1 投票

str = 'aagttctactaac' ;
iwant = [str(1:end-1)' str(2:end)'] ;

カテゴリ

ヘルプ センター および File ExchangeGenomics and Next Generation Sequencing についてさらに検索

タグ

質問済み:

2017 年 5 月 17 日

回答済み:

2017 年 5 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by