필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 Large 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