Splitting the characters of string
2 ビュー (過去 30 日間)
古いコメントを表示
For example I have a string that is, aatcgatcaagtca and I want to split it into four letters each that is,aatc,atcg,tcga,cgat and so on.
0 件のコメント
回答 (1 件)
KSSV
2017 年 5 月 22 日
str = 'aatcgatcaagtca' ;
iwant = [str(1:end-3)' str(2:end-2)' str(3:end-1)' str(4:end)'] ;
There could be more elegant way...
0 件のコメント
参考
カテゴリ
Help Center および File 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!