Community Profile

photo

malki adil


Last seen: Today Active since 2021

Statistics

All
  • Promoter
  • Community Group Solver
  • Solver

View badges

Content Feed

View by

Question


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 poss
I write this code for the qst in desciption function [summa,index] = max_sum(v,n) l=length(v); if n>length(v) summa =0...

environ un mois ago | 0 answers | 0

0

answers

Question


name value pairs with variable input arguments
function db = name_value_pairs(varargin) n=length(varargin); db ={}; if mod(n,2)~=0 || n ==0 db= {}; elseif ~ischar(var...

8 mois ago | 1 answer | 0

1

answer