photo

Sahil Deshpande


Last seen: 2 jours il y a Actif depuis 2020

Followers: 0   Following: 1

Message

Statistiques

All
  • First Answer
  • Solver
  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Réponse apportée
Write a function max_sum that takes v a row vector of numbers & n,a positive integer as inputs.The function needs to find n consecutive elements of v whose sum is largest possible.It returns summa & index of first element of n consecutive integers.
function [summa,index] = max_sum(v,n) l=length(v);m=0;t=0;pointer=1;index=0; %When n is larger than the length of vector v i...

plus de 3 ans il y a | 1

Question


Write a function called minimax that takes M, a matrix input argument and returns mmr, a row vector containing the absolute values of the difference between the maximum and minimum valued elements in each row. As a second output argument called mmm,
Write a function called minimax that takes M, a matrix input argument and returns mmr, a row vector containing the absolute valu...

environ 4 ans il y a | 17 réponses | 2

17

réponses