📄 total_length_of_cycle.m
字号:
function total_length = total_length_of_cycle(distances,path)
total_length = 0;
for i = 1:length(path)-1
total_length = total_length + distances(path(i),path(i+1));
end
total_length = total_length + distances(path(end),path(1));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -