Yan Li
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 distance = get_distance (ct1, ct2) [~,~,raw]= xlsread("Distances.xlsx"); f_row = raw(1,:); f_col = raw(:,1)...
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 distance = get_distance (ct1, ct2) [~,~,raw]= xlsread("Distances.xlsx"); f_row = raw(1,:); f_col = raw(:,1)...
4 years 前 | 0