populate matrix format based on my array values
<p>Am having some arrays i need to populate matrix based on that array.   For example here the example of the array element  type = {'casual', 'formal',  etc .. }  size =  {'small', 'medium', etc..}  color = {'Red', 'Green', 'Blue', ... }    </p>

<p>Based on the type, size and color i need to populate the matrix looks like below.<br>
    <pre>
    casual     small        Red
    casual     small        Green
    casual     small        Blue
    casual     medium       Red
    casual     medium       Green
    casual     medium       Blue
    formal     small        Red
    formal     small        Green
    formal     small        Blue
    </pre></p>

<p>I would like some of your valuable suggestion to populate a matrix in efficient way based on this criteria. </p>
