Hey Guys, How would you write a geometric series that stores the first 10 terms and halves each time?

1 view (last 30 days)
It should print for example: {1/2,1/4,1/8,1/16...1/1024}

Answers (1)

Walter Roberson
Walter Roberson on 11 Nov 2015
hint: the .^ operator can take a vector as the exponent

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!