gistlib
main.mfunction output = doubleonleft(vec, idx) if idx > 1 vec(idx) = vec(idx) * 2 * vec(idx - 1); end output = vec; end 134 chars7 lines
function output = doubleonleft(vec, idx) if idx > 1 vec(idx) = vec(idx) * 2 * vec(idx - 1); end output = vec; end
gistlibby LogSnag