Let, there be two variables, amax, maximum value of horizontal ground acceleration and mw, magnitude of an earthquake required to find out CSR, cyclic stress ratio, a term related to liquefaction. Both of these variables follow normal random distribution and the correlation coefficient between them is 0.9. I have defined the two concerned variables as uncorrelated ones in the following manner,
amax=normrnd(mean,standard deviation,no. of rows,no. of columns); mw=normrnd(mean,standard deviation,no. of rows,no. of columns);
normrnd is a command in the matlab to generate a normal distribution of given size, for a particular value of mean and standard deviation.
For each of these values I found out corresponding CSR values through an empirical formula. Suggest me how to insert the correlation co-efficient matrix(symmetric) of order 2×2 in a matlab program along with the definitions of these two variables.
Best Answer