Let
MU=[1 2; 3 4; 5 6]SIGMA=[2 0; 0 2]
I want to write one or two lines of code to draw R=10 unobservables from Normal((MU(1,:),SIGMA), Normal((MU(2,:),SIGMA), Normal((MU(3,:),SIGMA) without looping and store the results in a matrix 3x(R*2).
matricesmatrixmatrix arraymatrix manipulation
MU=[1 2; 3 4; 5 6]SIGMA=[2 0; 0 2]
Best Answer