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

📄 getvalue3.m

📁 数组排序,按照数组的某个元素进行排序,使用请查看
💻 M
字号:
function y = getvalue3(path,F,X,table)   
% path contains nodes of each stage of the table
% to get the value of the path, set it the last element of the path
s = size(path);
s = s(2);
fx = 0;
for i = 1:s  
    %f = fvec{i};
    choice = table(1,path(i));
    path(i) = X(i,choice);
    fx = fx + F(choice,i);
end
path(s+1) = fx;
y = path;

⌨️ 快捷键说明

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