Random Vectors with Fixed Sum

Randomly and uniformly generates vectors with a specified sum and values in a specified interval.

Download
Download

You are now following this Submission

Editor's Note: This file was a File Exchange Pick of the Week

Cite As

Roger Stafford (2026). Random Vectors with Fixed Sum (https://www.mathworks.com/matlabcentral/fileexchange/9700-random-vectors-with-fixed-sum), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: portfolio_sortino_ratio

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0

Download