フィルターのクリア

Protein sequence manipulation for adding elements before or after the sequence.

1 回表示 (過去 30 日間)
Nedz
Nedz 2020 年 3 月 31 日
コメント済み: Peng Li 2020 年 4 月 9 日
how do i add zeros to both ends or one end (before or after) of a protein sequence?
Example:
a protein sequence is given as 'ITYTDCTESGQDLCLCEGSDVCGKGNKCILGSNGEENQCVTGEGTPKPQSHNDGDFEEIPEEYLQ'
how do i add zeros at the beginning before the first element of the sequence?

採用された回答

Peng Li
Peng Li 2020 年 3 月 31 日
The easiest way to add N zeros before it can be done by:
[repmat('0', 1, N) yourProSeq];
  5 件のコメント
Nedz
Nedz 2020 年 4 月 9 日
編集済み: Nedz 2020 年 4 月 9 日
What if i want to add zeroes after the squence (on the right end)?
Peng Li
Peng Li 2020 年 4 月 9 日
You flip the repmat() stuff and mm in above example.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by