write a function addsecondandthird that takes a vector as input and returns the sum of its second and third elements. assume the vector input will always have at least three elements in matlab
main.m
functionsum = addsecondandthird(vec) sum = vec(2) + vec(3);
end