Gistlib Logo

gistlib

other matlab categories

function` code snippets in matlab

write a function sumeveryother( v ) that takes in a vector and returns the sum of every other element, starting with the first element and make it without using loops in matlab

gistlibby LogSnag