[已答复] 主程序是个函数合理吗??

[复制链接]
wx_MCRY4Ydy 发表于 2020-11-26 12:00:12
大家看看,主程序是这个函数合适吗??
function[Max_flow, Flow, Remain, Time] = Main(G,ac)%Stairs_width, Stairs_density, Channel_width, Channel_density, Graph_enter,Graph_exit, ac)%, Emergency)
Graph = G;%Channel(Channel width, Channel density, ac) + Stairs(Stairs width, Stairs density,ac) + Graph enter +(Graph exit./5.*ac);
ROW = length(Graph);
Graph(2:ROW, = Graph(2:ROW,.*ac./5;
Total = sum(Graph(1,);
% Emergency situation
% Only leaving is allowed
% Use this section by uncommenting all about this
%{
if ?isempty(Emergency)
Graph(2:ROW,Emergency) = 0;
Ge = Graph;
t = [];
for i = 1:length(Emergency)
v = sum(Graph(Emergency(i),,2);
t = [t, ac*Graph(1,Emergency(i))/v];
end
Graph(1, Emergency) = 0;
Graph(Emergency, = 0;
end
%}
i = 0;
Max flow = [];
Flow = zeros(ROW, ROW, 1);
Remain = zeros(ROW, ROW, 1);

主程序是这个函数合适吗

主程序是这个函数合适吗

1 条回复


叫妹賴dd963 发表于 4 天前
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

相关帖子
热门教程
站长推荐
快速回复 返回顶部 返回列表