generate increasing exponential series for 10 numbers with sum equal 1.

3 views (last 30 days)
summyia qamar
summyia qamar on 10 Sep 2018
Answered: Guillaume on 10 Sep 2018
I want to generate 10 numbers in increasing manner such that their sum equals 1.. for example; .1+.1+.1+.2+.2+.3=1 in such a way I want 10 number which increase exponentially and sum equal 1... I tries geometric regression but it didnt work
  2 Comments
summyia qamar
summyia qamar on 10 Sep 2018
I mean in this way gradually increaseing..I tried but couldnt figured out..can you give an example?

Sign in to comment.

Accepted Answer

Guillaume
Guillaume on 10 Sep 2018
v = rand(1, 10);
v = sort(v) / sum(v)
would be one way to generate a monotonically increasing vector of 10 numbers.
If that's all you're after...

More Answers (0)

Community Treasure Hunt

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

Start Hunting!