photo

UJJWAL Padha


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

Followers: 0   Following: 0

Statistiques

  • 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 distance = get_distance(x,y) k=-1; [~,~,all] = xlsread('Distances.xlsx'); [r c] = size(all) for i = 1:r for j ...

plus de 4 ans il y a | 1

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 matrix = sparse2matrix(a) sparse_matrix = 0; % assigning variable sparse_matrix = 0 for i = ...

plus de 4 ans il y a | 0