Question: Extra Credit: Write MATLAB code to: (10 points) a. Define a vector of all even numbers between 1 and 100 b. Define a vector of
Extra Credit: Write MATLAB code to: (10 points) a. Define a vector of all even numbers between 1 and 100 b. Define a vector of all odd numbers between 1 and 100 c. Calculate the dot product of the two vectors d. Plot the 2 vectors against a third vector of the same size, but with all values equal to 64, on a 3d graph e. Create a vector of 100 elements where all the odd indexed elements are 1, and all the even indexed elements are 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
