艾伦•查柯
内容提要
回答
写一个函数称为get_distance接受两个特征向量输入代表两个城市的名字。函数返回它们之间的距离作为输出参数称为距离。例如,调用get_distance(西雅图,华盛顿州的
函数d = get_distance (c1, c2)[~, ~,城市]= xlsread (“Distances.xlsx”);(r、c) =(市)大小;行(1:e =城市……
写一个函数称为get_distance接受两个特征向量输入代表两个城市的名字。函数返回它们之间的距离作为输出参数称为距离。例如,调用get_distance(西雅图,华盛顿州的
函数d = get_distance (c1, c2)[~, ~,城市]= xlsread (“Distances.xlsx”);(r、c) =(市)大小;行(1:e =城市……
3年前| 0