Generate multivariate normal data

Generate sample data based on user defined correlations (not covariances).

You are now following this Submission

Generates a sample of observations having user defined correlation matrix R. Optionally, the user may also define the means and variances. If unspecified, these two arguments will default to a mean vector of zeros and variance vector of ones.

Cite As

Calvin Price (2026). Generate multivariate normal data (https://nl.mathworks.com/matlabcentral/fileexchange/25960-generate-multivariate-normal-data), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Random Number Generation in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Means and variances are now optional inputs. Number of variables is no longer an input, but is simply inferred from size of correlation matrix.

1.0.0.0