Alan Chacko
Followers: 0 Following: 0
Feeds
已回答
Write a function called get_distance that accepts two character vector inputs representing the names of two cities. The function returns the distance between them as an output argument called distance. For example, the call get_distance('Seattle, WA'
function d = get_distance(c1,c2) [~,~,city] = xlsread("Distances.xlsx"); [r,c] = size(city); row = city(1:e...
Write a function called get_distance that accepts two character vector inputs representing the names of two cities. The function returns the distance between them as an output argument called distance. For example, the call get_distance('Seattle, WA'
function d = get_distance(c1,c2) [~,~,city] = xlsread("Distances.xlsx"); [r,c] = size(city); row = city(1:e...
4 years 前 | 0