correlation confiscation

to find the correlation coefficient between carves
202 Downloads
Updated 25 Sep 2013

View License

to find the correlation coefficient between carves
function rr=cor(yyn,yon)
n=length(yon); %yon x..outher..yo1 yyn...y ..adopted..yn1

a=n*sum(yon.*yyn)-sum(yon)*sum(yyn);

b=sqrt((n*sum(yon.^2)-(sum(yon))^2)*(n*sum(yyn.^2)-(sum(yyn))^2));
rr=(a/b);

Cite As

ahmed majeed (2024). correlation confiscation (https://www.mathworks.com/matlabcentral/fileexchange/43634-correlation-confiscation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

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