How can I get any one solution to this indefinite equation?

1 view (last 30 days)
Assume x1,x2,...,xn > 0, I want to find a solution to the following equation:
x1 + x2 + ... + xn = C, say C = 12.6.
Is there some easy code to meet my requirement?

Answers (1)

Walter Roberson
Walter Roberson on 18 Aug 2017

Categories

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

Community Treasure Hunt

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

Start Hunting!