photo

malki adil


Last seen: 1 year 前 自 2021 起处于活动状态

Followers: 0   Following: 0

统计学

All
  • Promoter
  • Community Group Solver
  • Solver

查看徽章

Feeds

排序方式:

提问


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...

2 years 前 | 0 个回答 | 0

0

个回答

提问


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...

2 years 前 | 1 个回答 | 0

1

个回答