how can i create a string buffer with n size

2 次查看(过去 30 天)
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
str = 'aagttctactaac' ;
iwant = [str(1:end-1)' str(2:end)'] ;

类别

Help CenterFile Exchange 中查找有关 Genomics and Next Generation Sequencing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by