![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/17953147_1585235580103_DEF.jpg)
Jaimin Patel
Followers: 0 Following: 0
Statistik
0 Fragen
1 Antwort
RANG
168.706
of 297.016
REPUTATION
0
BEITRÄGE
0 Fragen
1 Antwort
ANTWORTZUSTIMMUNG
0.00%
ERHALTENE STIMMEN
0
RANG
of 20.419
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANG
of 157.725
BEITRÄGE
0 Probleme
0 Lösungen
PUNKTESTAND
0
ANZAHL DER ABZEICHEN
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Write a function called max_sum that takes v, a row vector of numbers, and n, a positive integer as inputs. The function needs to find the n consecutive elements of v whose sum is the largest possible.
function [X,Y] = max_sum(v,n) % X and Y are output arguments X = -inf; %take -inf value of X for getting minus sum p = n; Y...
fast 5 Jahre vor | 0