⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 offfindpos.m

📁 UMDA. a kind of estimation of distribution algorithm , which is the improvement of genetic algorithm
💻 M
字号:
function[Pos] =  OffFindPos(vector)%OffFindPos translates the vector of angles to the  positions into the lattice.% INPUTS% vector: Sequence of residues ( (H)ydrophobic or (P)olar, respectively represented by zero and one)% OUTPUTS% Pos: Matrix of positions Pos(sizechain,2) calculated from the anglessizeChain = 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=3:sizeChain Pos(i,1) = Pos(i-1,1)+cos(vector(i)); Pos(i,2) = Pos(i-1,2)+sin(vector(i));end% Last version 10/09/2005. Roberto Santana (rsantana@si.ehu.es)    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -