first step you have to construct the big matrix then compute the correlation:
X=struct2array(here type your structure title) % data
y=corrcoef(X) % correlation matrix
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!