📄 callrepair.m
字号:
function[s] = CallRepair(vector)% CallRepair modify a sequence configuration to avoid self-intersections% INPUTS% vector: Sequence of residues ( (H)ydrophobic or (P)olar, respectively represented by zero and one)% OUTPUTS% s: Sequence of residues repaired (without self-intersections) global InitConf;sizeChain = size(vector,2);Pos = zeros(sizeChain,2);Pos(1,1) = 0; %Position for the initial molecule Pos(1,2) = 0; Pos(2,1) = 1; %Position for the second molecule Pos(2,2) = 0; for i=1:sizeChain moves(i,:) = randperm(3)-1; end moves = [vector',moves]; s = [];[solutionFound,s] = NewRepair(sizeChain,Pos,1,moves,s,vector);% Last version 10/09/2005. Roberto Santana (rsantana@si.ehu.es)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -