I have a predefined correlation matrix for N variable and want to generate time series for these variables satisfying their correlation. The time could be of any number of data points (i.e., 300).
I tried as follows but couldn't preserve the correlation of all N variable.
Any suggestion(s) or already written script(s) in MATLAB, R or Python will be much appreciated.