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

📄 mutation.m

📁 Advanced Human Mood detection technique using Genetic Algorithms in Matlab
💻 M
字号:
function newpop = mutation(newpop)

for i = 1:20
    s1=ceil(27*rand());
    s2=ceil(27*rand());
    
    while s2 == s1
        s2 = ceil(27*rand());
    end
    p1 = floor(6*rand());
    p2 = floor(6*rand());
    newpop(s1,1) = p1;
    newpop(s2,1) = p2;
end

⌨️ 快捷键说明

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