Question: #Matlab code For these exercises, do not use the direct entry method to construct the vectors. Write a script to do the following: (Can all

#Matlab code

For these exercises, do not use the direct entry method to construct the vectors.

Write a script to do the following: (Can all be in one script)

a) Construct a vector containing all of the even numbers between 6 and 49. Store your answer in the variable evens.

b) Construct a vector threes, containing every third number starting at 7 and ending at 39.

c) Construct a vector reverse, containing numbers starting at 20 and counting backwards by ones to 6.

d) Construct a vector theta, containing 100 evenly spaced values between +2 and 2.

e) Construct a vector myZeros, containing 20 elements, all of which are zeros.

f) Construct a vector, random, containing 10 randomly generated numbers between 2 and 3.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!