photo

Md Nazmus Sakib


BUET Mechanical Engineering

Last seen: plus de 4 ans il y a Actif depuis 2020

Followers: 0   Following: 0

Message

Statistiques

All
  • Solver
  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apporté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 y = get_distance(city_1,city_2) global raw; [~,~,raw] = xlsread('Distances.xlsx'); %fetching cities in rows r_city ...

plus de 4 ans il y a | 0

Réponse apportée
Write a function called sparse2matrix that takes a single input of a cell vector as defined above and returns the output argument called matrix, the matrix in its traditional form
function y = sparse2matrix(p) row = p{1,1}(1,1); col = p{1,1}(1,2); default_val = p{1,2}; matrix = []; %assigning default v...

plus de 4 ans il y a | 0