How to find equal quantity
2 views (last 30 days)
Show older comments
Hello,
I have a budget from 100000euro and 5 options wit prices 89.2592 35.1637 108.6419 83.2887 112.1572 in euro
How do I share this budget so I will have an equal quantity of the 5 options?
Thanks in advance
2 Comments
Are Mjaavatten
on 30 Mar 2021
This seems trivial, but maybe I misunderstand?
n = 100000/sum([89.2592 35.1637 108.6419 83.2887 112.1572])
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!