Question: Exercise 1.6 a. Recall that a geometric sequence is a sequence of the form a, ar, ar, ar?,.... At the MATLAB command prompt (not in

Exercise 1.6 a. Recall that a geometric sequence is a sequence of the form a, ar, ar, ar?,.... At the MATLAB command prompt (not in an M-File), create a for loop that prints the first seven terms of this sequence when r=1/2 and a=3. Include the input and output in your document. b. Create a new M-File named "geomSeq" with the loop above. Be sure to test it to make sure it works! Include the code for your M-File in your document. c. Modify your M-File so that it accepts the value of r as an argument. Use this to find the first seven terms of the geometric sequence when r=1/3. Include the code that defines the function geomSeq in your document. Include also the output and the code you used in the command window
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
