Question: Without Using conditionals or iterations MATLAB Function: sumOfEvens Input: 1. (1xN double) A Vector of numbers ( N>=2) Output: 1. (double) A number Function Description:
Without Using conditionals or iterations MATLAB

Function: sumOfEvens Input: 1. (1xN double) A Vector of numbers ( N>=2) Output: 1. (double) A number Function Description: - Given a 1XN vector where N>=2, return the sum of the even indexed numbers. Examples: ans1 = sumOfEvens ([231476548982103518]) ans1 =171 ans2 = sumOfEvens ([2314]) ans2 =14 ans3 = sumOfEvens ([231476]) ans3 =14
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
