how to create a vector with the different sum of two elements of another vector?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Enrica Brunetti
il 17 Mar 2019
Commentato: Stephen23
il 18 Mar 2019
v = [1, 2, 3, 4, 6, 8];
l = length(v)
for i = 1 : 2 : l (?)
som = sum + v(i);
end
I don't know how to increse 'i' to create the sum of the two elements of the vector, the solution will be: som = [3, 7, 14]
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Digital Filter Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!