![照片](http://www.tatmou.com/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/14821077_1550553509369_DEF.jpg)
Gokul苏利耶萨勃拉曼尼亚
自2019年以来活跃
内容提要
回答
写一个函数称为get_distance接受两个特征向量输入代表两个城市的名字。函数返回它们之间的距离作为输出参数称为距离。例如,调用get_distance(西雅图,华盛顿州的
函数距离= get_distance (a, b)[~,文本,生]= xlsread (“Distances.xlsx”);因为我= 2:尺寸(生,1)如果比较字符串(文本{1},我……
写一个函数称为get_distance接受两个特征向量输入代表两个城市的名字。函数返回它们之间的距离作为输出参数称为距离。例如,调用get_distance(西雅图,华盛顿州的
函数距离= get_distance (a, b)[~,文本,生]= xlsread (“Distances.xlsx”);因为我= 2:尺寸(生,1)如果比较字符串(文本{1},我……
4年前| 0
回答
找到所有字符在MATLAB txtfile可见
如果ischar(字符)= = 0 charnum = 1;elseif charnum charnum = = 0 = 0;返回;结束
找到所有字符在MATLAB txtfile可见
如果ischar(字符)= = 0 charnum = 1;elseif charnum charnum = = 0 = 0;返回;结束
4年前| 0