Question: ( d ) D = [ 1 , - 1 , 1 , - 1 , 1 , - 1 , . . . ]

(d) D =[1,-1,1,-1,1,-1,...] up to n =10 terms. Modify your code to work for n =100.
(e) E =[0,1/2,2/3,3/4,4/5,5/6,...] up to n =10 terms. Modify your code to work for n =100.
HINT: Create a ten element vector such as A=1:10(or A=1:100), and then use a loop for 10(or
100) iterations to change each value in the vector A using a formula involving the loop variable.

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!