Vishesh Haria
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(a,b) [~,~,raw]=xlsread('Distances.xlsx'); row=raw(1,:); col=raw(:,1); for ii=2:length(row) ...
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(a,b) [~,~,raw]=xlsread('Distances.xlsx'); row=raw(1,:); col=raw(:,1); for ii=2:length(row) ...
4 years 前 | 0