I have the following Mathematica Code.
QueProcess = QueueingProcess[\[Lambda], \[Mu], c, c];
Simplify[QueueProperties[QueProcess], c > 0 && c \[Element] Integers];
NumReq = RandomFunction[QueProcess /. {\[Lambda] -> 1, \[Mu] -> 2, c -> 10}, {0, 9999,
1}];
Val = NumReq["Values"];
Note that Val
contains 10000 elements.
Now I want to generate a matrix of size 100 X 10000. That is I want to run the following
NumReq = RandomFunction[QueProcess /. {\[Lambda] -> 1, \[Mu] -> 2, c -> 10}, {0, 9999,
1}];
Val = NumReq["Values"];
100 times and save the values of each realization as a row in the matrix.
Finally, I need to export to matrix as .mat
format to use it in Matlab.
Any suggestions!