how to create a vector with the different sum of two elements of another vector?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Enrica Brunetti
am 17 Mär. 2019
Kommentiert: Stephen23
am 18 Mär. 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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Digital Filter Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!