Statistik
0 Fragen
1 Antwort
RANG
2.701
of 300.331
REPUTATION
22
BEITRÄGE
0 Fragen
1 Antwort
ANTWORTZUSTIMMUNG
0.00%
ERHALTENE STIMMEN
11
RANG
of 20.920
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANG
of 168.124
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 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); S=zeros(1,L-n+1); if n > L summa = 0; index = -1; return...
fast 5 Jahre vor | 11
