Code covered by the BSD License  

Highlights from
IPN_voxelGraph

5.0

5.0 | 1 rating Rate this file 7 Downloads (last 30 days) File Size: 2.87 KB File ID: #32553
image thumbnail

IPN_voxelGraph

by Xi-Nian Zuo

 

17 Aug 2011

Functions to Generate Large Correlation Matrix and Sparse Matrix of Huge Graph.

| Watch this File

File Information
Description

1) How to compute a Pearson correlation coefficient in MATLAB? The idea is a simple fact in math: for two standardized variables (0 mean and 1 std), the correlation is equivalent to their inner product. Thus, for two large sample matrices X and Y, the sample correlation matrix is R=X'Y/(n-1), where n is the number of samples.
2) How to build a sparse matrix for a huge graph (e.g., 100,000 nodes) based on massive samples? Using the above code of computing fast correlation, together with an idea of dividing the sample matrix into several blocks, the task becomes pretty easy and efficient in MATLAB.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
11 Apr 2012 RED STONE  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
correlation Xi-Nian Zuo 17 Aug 2011 09:33:21
brain Xi-Nian Zuo 17 Aug 2011 09:33:21
connectome Xi-Nian Zuo 17 Aug 2011 09:33:21
graph Xi-Nian Zuo 17 Aug 2011 09:33:21

Contact us at files@mathworks.com