IPN_voxelGraph

Functions to Generate Large Correlation Matrix and Sparse Matrix of Huge Graph.
395 Downloads
Updated 17 Aug 2011

View License

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.

Cite As

Xi-Nian Zuo (2024). IPN_voxelGraph (https://www.mathworks.com/matlabcentral/fileexchange/32553-ipn_voxelgraph), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Sparse Matrices in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0